#include<iostream>
#include<cstring>
#include<string>

using namespace std;

int main(void){

	string RUN;

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

	return 0;
}