n=int(input())
i=1
ans="No"
while i**3<=n:
    if i**3==n:ans="Yes"
    i+=1

print(ans)