get value of reverse polish notation