n=int(input()) x={ i**3 for i in range(2,10**6+1)} if n in x: print('Yes') else: print('No')