fork download
  1. n = int(input())
  2. x = 1
  3. while x*x<=n:
  4. x+=1
  5. if(x*x==n):
  6. print(x)
  7. if(x*x>n):
  8. print(x-1)
Success #stdin #stdout 0.1s 14048KB
stdin
16
stdout
4
4