P = int(input()) import sys if P==2: print("Yes") sys.exit() l = [0]*(10**4) for i in range(10**4): l[i]==i**2 for i in range(2,10**4,2): for j in range(3,10**4,2): if l[i]+l[j]==P: print("Yes") sys.exit() print("No")