import re inp = raw_input() if inp[0] == '-': x_minus = True inp = inp[1:] elif inp[0] == '+': x_minus = False inp = inp[1:] else: x_minus = False x = re.findall('^(\d*)[^\d*]', inp) x = x[0] inp = inp[len(x):] x = int(x) if x_minus == True: x = -x op = inp[0] inp = inp[1:] if inp[0] == '-': y_minus = True inp = inp[1:] elif inp[0] == '+': inp = inp[1:] y_minus = False else: y_minus = False y = int(inp) if y_minus == True: y = -y if op == '+': ans = x-y else: ans = x+y print ans