def solve(): P = int(input()) S = set() x = 0 while x*x < P: S.add(x*x) x += 1 return any(P-x2 in S for x2 in S) #================================================== print("Yes" if solve() else "No")