p = int(input()) s = set(i * i for i in range(10000)) for i in list(s): if (p - i) in s: exit(print("Yes")) print("No")