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