N=int(input()) Np=int(N**(1/3)) for i in range(-1,2): if (Np+i)**3==N: print("Yes") exit(0) print("No")