n = int(input())x = 1while x*x<=n: x+=1 if(x*x==n): print(x)if(x*x>n): print(x-1)
16
4 4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!