n = int(input()) for i in range(10 ** 7): if i ** 3 == n: exit(print("Yes")) print("No")