In the enchanted kingdom of Arithmora, wizards cast spells using arithmetic expressions. Each spell is a string consisting only of:
When a wizard chants the spell, the kingdom's ancient laws dictate that:
For example:
Your task is to compute the final value of the given spell expression.
The input contains a single line string $$$S$$$, the spell expression.
Output a single integer: the value of the expression.
2*3+4
10
3*4+5*6*7
222
2*3*0*1*5+5*5*5*5*5
3125