N=int(input()) for i in range(10**7): if i*i*i==N: print('Yes') break else: print('No')