#include <stdio.h>
#include<math.h>
int main() {
int a,b;
scanf("%d %d", &a) ;
b = sqrt(a);
printf("%d\n", b );
return 0;
}