#include<bits/stdc++.h>
using namespace std;

int main(){
    int i;
    string in, out;
    cin >> in;

    for(i = 0; i < in.size(); ++i){
        char tmpa = in[i], tmpb;
        int num, j;
        if(tmpa == '@'){
            tmpa = in[i + 1];
            num = tmpa - '0';
            tmpb = in[i + 2];
            for(j = 0; j < num; ++j){
            out = out + tmpb;
            }
            i = i + 2;
        }
        else{
            out = out + tmpa;
        }
    }
    cout << out << endl;
}
