P = int(input()) for i in range(1, int(P ** 0.5) + 1): if (P - i ** 2) ** 0.5 % 1 == 0: print("Yes") exit() print("No")