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