import sys INF = float('inf') #10**20,2**63,float('inf') MOD = 10**9 + 7 MOD2 = 998244353 #from collections import defaultdict def solve(): def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LC(): return list(input()) def IC(): return [int(c) for c in input()] def MI(): return map(int, sys.stdin.readline().split()) N = II() from collections import defaultdict Num = defaultdict(lambda :False) for n in range(1,1000050): Num[n**3] = True if(Num[N]): print("Yes") else: print("No") return solve() #sys.setrecursionlimit(10 ** 6)#再帰関数ではコメントにしないこと!!