from math import isqrt N=int(input()) ans=isqrt(N) print(ans)