#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
int main() {
	string c;
	int a;
	while (cin >> c){
		for (int i = 0; i != c.size(); i++){
			if (c[i] == '@'){
				if (c[i + 1] == '2')a = 2;
				else if (c[i + 2] == '3')a = 3;
				else if (c[i + 2] == '4')a = 4;
				else if (c[i + 2] == '5')a = 5;
				else if (c[i + 2] == '6')a = 6;
				else if (c[i + 2] == '7')a = 7;
				else if (c[i + 2] == '8')a = 8;
				else if (c[i + 2] == '9')a = 9;

				for (int j = 0; j < a; j++) {
					cout.put(c[i + 2]);
				}
				i++;
				i++;
			}
			else {
				cout.put(c[i]);
			}
		}
		cout << endl;
	}
}