#include <iostream>
#include<cmath>
using namespace std;
int main() {
    int n;
    cin>>n;
    cout<<floor(sqrt(n));
}

再次切水题-_-