from math import isqrt P = int(input()) i = 1 while i**2 < P: j2 = P-i**2 if isqrt(j2)**2 == j2: print("Yes") break i += 1 else: print("No")