include<bits/stdc++.h>

int main(){
int n,sq=0;
scanf("%d",&n);
sq=floor(sqrt(n));
printf("%d",sq);
return 0;
}