P=int(input()) for i in range(1,10**4+1): p=P-i**2 if p<=0: continue if int(p**0.5)**2==p: print('Yes') exit() print('No')