#include "bits/stdc++.h"
using namespace std;
string s;
int main(void) {
	while (cin >> s) {
		for (int i = 0; i < s.length(); ++i) {

			if (s[i] == '@') {
				for (int j = 0; j < s[i + 1] - '0'; ++j) {
					cout << s[i + 2];
				}
				i = i + 2;
			}else{
				cout << s[i];
			}
		}
	}
}