n=int(input()) for i in range(1,int(n**.5)+1): if 0<(n-i**2)**2<=n: print("Yes") exit() print("No")