import math def pinfanggen(n): return int(math.sqrt(n))if math.sqrt(n).is_integer() else math.sqrt(n) n=float(input()) print(pinfanggen(n))