def judgeint(s): if len(s) == 0: return False for i in range(1, len(s)): if s[i] == '+' or s[i] == '-': return False return True S = raw_input() op = [] for i in range(0, len(S)): if S[i] == '+' or S[i] == '-': op.append(i) for i in range(0, len(op)): A = '' B = '' for j in range(0, op[i]): A = A + S[j] for j in range(op[i]+1, len(S)): B = B + S[j] if judgeint(A) and judgeint(B): if S[op[i]] == '+': print int(A) - int(B) else: print int(A) + int(B) break