#include<bits/stdc++.h>
using namespace std;
int main(){
    double n,b;
    cin>>n;
    b=sqrt(n);
    cout<<floor(b);
    return 0;
}