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