n = int(input()) print("Yes" if any(i**3==n for i in range(10**6+1)) else "No")