Alan need to take a physics exam, but his calculator disappeared!! Can you help him to do a calculator??
The calculator need:
Add(+): A + B is add two number
Cut(-): A - B is number A cut numer B
Multiply(*): A * B is number A multiply B
Divide(/): A / B is number A divide B
There is a formula at a line.
The input will have $ at the end.The line doesn't have to output.
|answer| < 1000000 and will be integer.
They will have a space between number and symbol.
They will not have brackets.
The number of line will less than 100.
The length of input will < 3*10^7
Please output the answer of the formula.