Add subtract and multiply#8653

Add subtract and multiply

1 segundo
128 megabytes
Muy fácil (≈850)

Let be a variable initially equal to . Simulate the next operations with this variable:

Entrada

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.

Salida

Print the resulting value of .

Ejemplos

Ejemplo 1

Loading
Loading

Ejemplo 2

Loading
Loading