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