11382 - Chen Midterm1- Problem3   

Description

Give a postfix expression, which only has 2 operators, ‘+’ and ‘-’,and positive integers. Print the result.

Input

The input contains exactly 1 sequences of postfix expression. It contains operators, ‘+’ and ‘-’,and positive integers separated by a space.

The length of input sequence is smaller than or equal to 40

Output

The output is the result of the expression. (Without a newline symbol)

Sample Input  Download

Sample Output  Download

Tags




Discuss