import re S = input() m = re.match('([+-]?\d+)([+-])([+-]?\d+)', S) a, op, b = m.groups() match op: case '+': ans = int(a) - int(b) case '-': ans = int(a) + int(b) print(ans)