n = int(input()) A = set() for i in range(1, 1000001): A |= {i**3} print('Yes' if n in A else 'No')