s=input()+'+' now=0 ans=0 plus=True for i in range(len(s)): if s[i].isdecimal(): now=now*10+int(s[i]) else: if plus: ans+=now now=0 if s[i]=='+': plus=False else: ans*=now now=0 if s[i]=='*': plus=True print(ans)