import decimal from math import pow N=decimal.Decimal(input()) P=pow(N,1/3) print("Yes" if int(P)==P else "No")