N = int(input()) assert 1 <= N <= 10 ** 18 x = 1 while pow(x, 3) < N: x += 1 print("Yes" if pow(x, 3) == N else "No")