#C1632. Evaluate Simple Arithmetic Expression

    ID: 44859 Type: Default 1000ms 256MiB

Evaluate Simple Arithmetic Expression

Evaluate Simple Arithmetic Expression

You are given a mathematical expression in the form of a string. The expression contains single-digit integers, plus ('+') and minus ('-') operators, and may include whitespace characters.

Your task is to evaluate this expression from left to right after removing any whitespace. Note that the expression only uses addition and subtraction.

For example, the expression \(3+4-2\) results in \(5\).

inputFormat

The input consists of a single line containing the arithmetic expression. The expression includes single-digit numbers (0-9), the operators '+' and '-', and possibly spaces.

outputFormat

Output a single integer, which is the result of evaluating the expression.

## sample
3+4
7