S = set() for i in range(1, 10**4 + 1): S.add(i**2) P = int(input()) for s in S: if P - s in S: print("Yes") exit() print("No")