def main(): s=input() k=s.split("+") l=[] for i in k: l.extend(map(int,i.split("*"))) m=[] for i in s: if i in ["+","*"]: m.append(i) # print(l) # print(m) ans=l[0] for i in range(len(m)): if m[i]=="*": ans+=l[i+1] else: ans*=l[i+1] print(ans) if __name__=="__main__": main()