import sys import math p=int(input()) for i in range(1,floor(math.sqrt(2*p)/2)+1): j=p-i**2 if math.sqrt(j).is_integer(): print("Yes") sys.exit() print("No")