S=input() for i in range(1,len(S)): if 48<=ord(S[i-1])<=57 and ord(S[i])<=45: x=int(S[:i]) y=int(S[i+1:]) if ord(S[i])==45: print(x+y) else: print(x-y)