import re s=input() op=[] for i in range(len(s)): if s[i]=='*': op.append(0) elif s[i]=='+': op.append(1) s2=re.split('[+*]',s) ans=int(s2[0]) for i in range(1,len(s2)): if op[i-1]==0: ans+=int(s2[i]) else: ans*=int(s2[i]) print(ans)