n = int(input())

for i in range(1, int(n**0.5)):
    if i**3 == n:
        print(("Yes"))
        break
else:
    print("No")