import math x = int(input()) y = 1 while True: a = math.sqrt(x * y) if a == int(a): break else: y += 1 print(y)