#include<cstdio>
#include<iostream>
#include<string.h>
#include<stdlib.h>
using namespace std;
int main()
{
    char a[210]={0};
    while(cin>>a)
    {
        int along=0;
        char moji=0,c=0;
        int kaz=0;
        along=strlen(a);
        for(int i=0;i<along;i++)
        {
            if(a[i]!='@')cout<<a[i];
            else if(a[i]=='@')
            {
                c=a[i+1];
                kaz=atoi(&c);
                moji=a[i+2];
                for(int j=0;j<kaz;j++)
                {
                    cout<<moji;
                }
                i+=2;
            }
        }
        cout<<endl;
        for(int kk=0;kk<=210;kk++)
        {
            a[kk]=0;
        }
    }
    return 0;
}