l=list(input()) ans="((" for i in range(len(l)): if l[i]=="+": ans+="))*(" elif l[i]=="*": ans+=")+(" else: ans+=l[i] ans+="))" print(eval(ans))