N = int(input()) S = set() for i in range(1, 10 ** 6 + 5): S.add(i**3) print("Yes") if N in S else print("No")