N=int(input()) for i in range(10**6+3): if i**3==N: print("Yes") break else: print("No")