#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define loop(i,a,b) for(ll i=a;i=b;i--) const int inf=1e8; const ll INF=1e16; #define MOD 1000000007 #define mod 1000000009 #define m 1000003 int main(){ string s; cin>>s; int i=0,ans=0; int a=0; string kazu; char kigou='*'; while(s[i]!='\0'){ if(s[i]>='0' && s[i]<='9'){ kazu.push_back(s[i]); }else{ int n=atoi(kazu.c_str()); if(kigou=='*'){ ans+=n; }else{ ans*=n; } kazu=""; kigou=s[i]; } i++; } int n=atoi(kazu.c_str()); if(kigou=='*'){ ans+=n; }else{ ans*=n; } cout<