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