from math import isqrt n=int(input()) s=isqrt(n) if n