n=int(input()) for i in range(1,10**4): for j in range(1,10**4): if i**2+j**2==n: print("Yes") exit() print("No")