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