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