Problem2136--Reverse Polish notation

2136: Reverse Polish notation

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 144  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

When the inverse Polish method is used to solve the symbol, the two numbers in front of the symbol are calculated with the symbol, and then the number is put back.Solve using function.

Input

Given a string

Output

A integer represents the operation result

Sample Input Copy

12+

Sample Output Copy

3

Source/Category

181