#include<iostream>
#include<string>
using namespace std;

int main()
{
    string in;

    while( cin >> in )
    {
        for( int i = 0; i < in.size(); i++ )
        {
            if( in[i] == '@' )
            {
                int n = in[i+1] - '0';              //char→int型
                for( int j = 0; j < n; j++ )
                    cout << in[i+2];
                i += 2;
            }
            else
                cout << in[i];
        }
        cout << endl;
    }
    return 0;
}
