#include <iostream>
#include <cmath>
#include <math.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    int a = static_cast<int>(sqrt(n));
    cout << a << endl;
    return 0;
}
// 64 位输出请用 printf("%lld")