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