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