N = int(input()) P = int(N ** (1 / 3)) for p in range(max(1, P - 100), P + 100): if p ** 3 == N: print("Yes") break else: print("No")