N=int(input()) x=round(N**(1/3)) if N==x**3:print("Yes") else:print("No")