import decimal from math import pow N=decimal.Decimal(input()) P1=int(pow(N,1/3)) P0=P1-1 P2=P1+1 if P0**3 ==N or P1**3 ==N or P2**3 ==N: print("Yes") else: print("No")