#include<iostream>
#include<vector>
#include<string>
using namespace std;

int main(){
	string s;
	while(cin >> s){
		string::iterator it = s.begin();
		while(it != s.end()){
			if(*it == '@'){
				it += 2;
				for(int i = 0; i < *(it-1) - '0'; i++){
					cout << *it;
				}
				it++;
			}else{
				cout << *it;
				it++;
			}
		}
	cout << endl;
	}
}