#include<iostream>
#include<string>
#include<cstring>
#include<cstdlib>
#include<typeinfo>
using namespace std;

int main(){
	string ss;
	while(cin>>ss){
		string ans;
		for(int i=0;i<ss.size();i++){
			if(ss[i]=='@'){
				string alt;
				while(isdigit(ss[i])){
					alt+=ss[i];
					i++;
				}
				char cc=ss[i];
				int loop=stoi(alt);
				for(int j=0;j<loop;j++){
					ans+=cc;
				}
			}else{
				ans+=ss[i];
			}
		}
		cout<<ans<<endl;
	}
	return 0;
}