#include <iostream>
#include<cmath>
using namespace std;

int main() {
int a;
cin>>a;
a=sqrt(a);
cout<<a;
}

// 64 位输出请用 printf("%lld")