#include <iostream>
#include <vector>
#include <map>
#include <set>
using namespace std;
typedef long long ll;



int main() {
    ll n;
    cin >> n;
    int res = 0;
    for(ll i = 1; i <= n; i++) {
        if(i * i < n) {
            res++;
        }
        else {
            break;
        }
    }
    cout << res << endl;
    return 0;
}
