N = int(input()) tmp = int(N**(1/3)) ans = 'No' for num in range(tmp - 2, tmp + 3): if num**3 == N: ans = 'Yes' print(ans)