N=int(input()) X=[x*x*x for x in range(10**6+1)] print("Yes" if N in X else "No")