n=int(input()) for i in range(1,10**5): key=n-i**2 kay=int(key**(1/2)) if kay**2==key and key!=0: print("Yes") exit() print("No")