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