#include<bits/stdc++.h>
using namespace std;
int main()
{
long long ans=0,temp,num;
char ch;
cin>>temp;
while(cin>>ch>>num){
if(ch=='+'){
ans=(ans+temp)%10000;
temp=num;
}
else temp=(temp*num)%10000;
}
ans=(ans+temp)%10000;
cout<<ans;
}
0 回复
0 转发
1 喜欢
4 阅读



