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