N = int(input()) for i in range(min(N+1, 1+10**6)): if i**3 == N: print('Yes') exit() print('No')