n = int(input()) for i in range(1, 10 ** 6 + 5): if i * i * i == n: print("Yes") exit() print("No")