import sys N = int(input()) a = int(N**(1/3))-1 for i in range(3): if (a+i)**3 == N: print("Yes") sys.exit() print("No")