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