n = int(input()) ans = "No" for i in range(10 ** 6): if (i+1) ** 3 == n: ans = "Yes" print(ans)