n = int(input()) m = n**0.5 for i in [m-1,m,m+1]: if i**2 == n: print("Yes") exit() print("No")