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