An expression is given that contains only numbers and operations and . Calculate the value of the expression, assuming that the operations and have the same priority. In this case 2 + 2 * 2 equals .
A non-empty string is given with no more than characters. line contains only numbers, and operators and . always starts with a number and represents a valid arithmetic expression. To the left and right of each operation there is a digit, to the left and right of each digit there is either the beginning/end of the string, or a mathematical operation.
Print the result of expression.
Example 1
Example 2
Example 3