## Add or Subtract

Submit solution

Points:
100

Time limit:
1.0s

Memory limit:
64M

Author:

Problem types

Allowed languages

C, C++, Java, Python

You will be given a valid expression `E`

consisting of " + ", " - " and integers.

Example: "23+56-(100-25)"

It is guaranteed that the given expression is valid and can be calculated.

You task is to evaluate the expression.

**Note**

- There are no spaces in
`E`

#### Input

A string `E`

consisting of " + ", " - " and integers.

#### Output

The value of the expression

#### Constraints

\(1 \leq\) `E.length`

\(\leq 3.10^4\)

#### Example

**Input**

`2+5-(3+4)+(2-3)`

**Output**

`-1`

## Comments

the question itself is wrong The question says that there wont be any '(' characters right? but in the sample input it is given