n=int(input()) S={i*i for i in range(1,10**4+1)} for i in range(1,10**4+1): if n-i*i in S: exit(print("Yes")) print("No")