#P2788. 数学1(math1)- 加减算式

数学1(math1)- 加减算式

Description

At long last, HansBug has made it to the final math problem: a jumble of addition and subtraction expressions. Success seems within reach. However, his brain cells and RP (luck) are completely drained, so this important task is now up to you.

Input Format

One line containing an addition/subtraction expression given as a string (the number in each term is in the range 0327670 \sim 32767).

Output Format

A single integer, which is the computed result (guaranteed that the result will not exceed the range of a long integer).

1+2-3
0

Hint

The testdata guarantees that the string length does not exceed 6000060000.

Translated by ChatGPT 5