#include <iostream>
using namespace std;


int main(){
    string s;
    while (cin >> s){
	for (int i = 0; i < s.size(); i++){
	    if (s[i] == '@'){
		int n = s[i+1] - '0';
		for (int j = 0; j < n; j++){
		    cout << s[i+2];
		}
		i += 2;
	    }
	    else cout << s[i];
	}
	cout << endl;
    }
}