X = int(input()) Y = 1 while True: if (X*Y)**(1/2) == int((X*Y)**(1/2)): print(Y) exit() else: Y += 1