#include<iostream>
#include<string>

using namespace std;

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