n = int(input()) l=[] for i in range(10000): i2 = i**2 if i2 > n:continue for j in range(10000): j2 = j**2 if i == j :continue if i2 + j2 == n: print('Yes') exit() else: print('No')