import decimal import math eps = 0.000000001 import decimal n = int(input()) M = decimal.Decimal(pow(n,1/3)) import math #print(M) MMM = math.ceil(M) MMMM = math.floor(M) if abs(MMMM - M) < eps: print("Yes") exit() if abs(MMM - M) < eps: print("Yes") exit() print("No")