Let be a variable initially equal to . Simulate the next operations with this variable:
add : add value to ;
subtract : subtract value from ;
multiply : multiply by ;
Each line contains operation and value. Process all given operations. The value of the variable after each operation does not exceed 10^9 by absolute value.
Print the resulting value of .
Example 1
Example 2