n = int(input()) for i in range(1000001): if i**3 == n: print('Yes') exit() print('No')