P = int(input()) Ps = set([i*i for i in range(1, 10**4+1)]) def solver(P, Ps): for p1 in Ps: if P-p1 in Ps: return True return False if solver(P, Ps): print("Yes") else: print("No")