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