X = int(input()) A = 1 a = 1 while (X*a)**0.5%1 != 0: a += 1 print(a)