S=input() T="" X=[] for s in S: if s!="+"and s!="*": T+=s else: T+=" " X+=[s] T=list(map(int,T.split())) ANS=T[0] for i in range(len(X)): if X[i]=="+": ANS*=T[i+1] else: ANS+=T[i+1] print(ANS)