n = int(input()) yes = False for i in range(n): if i**3 > n: break if i**3 == n: yes = True print("Yes" if yes else "No")