from re import findall ts = findall('\+|\-|\d+', raw_input()) x, y, op, ans = None, None, None, None if ts[0] == '-': x = -int(ts[1]) ts = ts[2:] elif ts[0] == '+': x = int(ts[1]) ts = ts[2:] else: x = int(ts[0]) ts = ts[1:] op = ts[0] ts = ts[1:] if ts[0] == '-': y = -int(ts[1]) elif ts[0] == '+': y = int(ts[1]) else: y = int(ts[0]) if op == '+': ans = x - y else: ans = x + y print(ans)