n = int(input()) x = int(n ** (1 / 3)) for i in range(x - 2, x + 3): if i ** 3 == n: print("Yes") exit() print("No")