p = int(input()) for i in range(1,10**4+1): for j in range(1,10**4+1): if i**2+j**2 == p: print("Yes") exit() print("No")