#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>

using namespace std;

int main() {
	string str;
	while (cin >> str) {
		for (int i = 0; i < str.size(); i++) {
			char c = str[i];
			if (c == '@') {
				c = str[++i];
				int num = atoi(&c);
				c = str[++i];
				for (int j = 0; j < num; j++)
					cout << c;
			}
			else {
				cout << c;
			}
		}
		cout << endl;
	}
	return 0;
}