#include <stdio.h>
#include <math.h> // sqrt
int main(){
	
	int n;
	
	scanf("%d",&n);
	
	if(n>1000){
		scanf("%d",&n);
	}
	
	printf("%d",(int)sqrt(n));
	
	return 0;
}
