#include<bits/stdc++.h>
using namespace std;
int main()
{
stack<char> a;
string n,x;
getline(cin,n);
for(int i=0;i<=n.size()-1;i++)
{
if(n[i]=='#')
{
if(!x.empty())
{
a.pop();
}
}
else if(n[i]=='@')
{
while(!x.empty())
{
a.pop();
}
}
else
{
a.push(n[i]);
}
}
while(!x.empty())
{
x+=a.pop();
}
for(int i=x.size-1;i<=0;i--)
{
cout<<x[i];
}
return 0;
}
03-28
258

04-02
300

09-17
1852

11-06
1万+
