import sys input=lambda: sys.stdin.readline().rstrip() S=input() X="" Y="" OP=[] st=0 for i in range(len(S)): s=S[i] if s=="+" or s=="-": OP.append(s) if i!=0: st=1 else: if st==0: X+=s else: Y+=s x,y=int(X),int(Y) if len(OP)==1: if OP[0]=="+": print(x-y) else: print(x+y) elif len(OP)==2: if S[0]=="+": if S[1]=="+": print(x-y) else: print(x+y) elif S[0]=="-": if S[1]=="+": print(-x-y) else: print(-x+y) else: if S[1]=="+": if S[0]=="+": print(x-y) else: print(x+y) else: if S[0]=="+": print(x+y) else: print(x-y) else: if S[0]=="-": x=-x if S[2]=="-": y=-y if S[1]=="+": print(x-y) else: print(x+y)