n=int(input()) k=1 for i in range(10**6+1): if i**3==n:k=0 print('YNeos'[k::2])