x="" o=None y=list(raw_input()) if y[0]=="+" or y[0]=="-": x+=y.pop(0) while y[0].isdigit(): x+=y.pop(0) o=["+","-"][y.pop(0)=="+"] y="".join(y) print eval(x+o+y)