Problem1017--Find the value of ex<x>pression

1017: Find the value of expression

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

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

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

Source/Category