eps = 0.0000001 n = int(input()) M = 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")