#include using namespace std; signed main(){ string s;cin>>s; int ans=0,tmp=0; bool x=0; for(char p:s){ if(p=='+'){ if(x)ans*=tmp; else{ ans+=tmp; x=1; } tmp=0; } else if(p=='*'){ if(x){ ans*=tmp; x=0; } else ans+=tmp; tmp=0; } else tmp=tmp*10+p-'0'; } if(x)ans*=tmp; else ans+=tmp; cout<