#include using namespace std; using ll = long long int; const char en='\n'; void calc(ll &i,int op,ll v){ if(op==1){ i+=v; }else { i*=v; } } int main(){ cin.tie(); ios::sync_with_stdio(false); string s; cin>>s; ll res=0,buf=0; int op=1;//0:num 1:add 2:mlty; for(auto c:s){ if(c=='*'){ calc(res,op,buf); op=1; buf=0; }else if(c=='+'){ calc(res,op,buf); op=2; buf=0; }else { buf*=10; buf+=c-'0'; } } calc(res,op,buf); cout<