Problem: One very experienced problem writer decided to prepare a problem for April Fools Day contest. The task was very simple - given an arithmetic expression, return the result of evaluating this expression. However, looks like there is a bug in the reference solution...

Input

The only line of input data contains the arithmetic expression. The expression will contain between 2 and 10 operands, separated with arithmetic signs plus and/or minus. Each operand will be an integer between 0 and 255, inclusive.

Output

Reproduce the output of the reference solution, including the bug.

Examples

Input

8-7+6-5+4-3+2-1-0


Output

4


Input

2+2


Output

-46


Input

112-37


Output

375

Solution (in PYTHON3):

Solution:
s = input()
now = 0
n = len(s)
ans = []
while (now < n) and (s[now] != '-') and (s[now] != '+'):
    ans.append(ord(s[now])-48)
    now += 1
ans.reverse()
while now < n:
    opt = s[now]
    now += 1
    a = [ord(opt)-48]
    while (now < n) and (s[now] != '-') and (s[now] != '+'):
        a.append(ord(s[now])-48)
        now += 1
    a.reverse()
    if len(a) <= len(ans):
        for i in range(len(ans) - len(a)):
            a.append(0)
    else:
        for i in range(len(a) - len(ans)):
            ans.append(0)
    for i in range(len(ans)):
        if opt == '-':
            ans[i] -= a[i]
        else:
            ans[i] += a[i]
ret = 0
ans.reverse()
for i in range(len(ans)):
    ret = ret * 10 + ans[i]
print(ret)