Reverse Polish notation#5060

Reverse Polish notation

1 second
128 megabytes
Very easy

Reverse Polish notation (RPN) is a mathematical notation in which every operator follows all of its operands. This notation is also known as postfix notation and does not require any parentheses as long as each operator has a fixed number of operands.

For example:

Evaluate the value of an arithmetic expression written in Reverse Polish Notation. The valid operators are +,~-,~*,~/ only. The division operator performs integer division (14~/~3 = 4). Each operand may be either an integer or another expression.

Input

One line contains the expression written in Reverse Polish notation. The length of the expression does not exceed characters.

Output

Print the value of the expression given in Reverse Polish notation.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading