1017: Find the value of expression
[Creator : ]
Description
Given an expression only with addition (+) and multiplication (*) and no bracket , please find the value of the expression.
The total number of operators (+ or * ) is N ( 1<=N<=100,000 ) all operant are positive integers whose value is less than 231
The total number of operators (+ or * ) is N ( 1<=N<=100,000 ) all operant are positive integers whose value is less than 231
Input
One line which is math expression
Output
One integer which is the value of expression
Sample Input Copy
1+2*3*2*2*2+1*2+1
Sample Output Copy
52