n = int(input()) l = 0 r = 10 ** 6 + 1 while r - l > 1: c = r + l >> 1 if c ** 3 <= n: l = c else: r = c print('Yes' if l ** 3 == n else 'No')