/*Run length*/

#include <iostream>
#include <string>

using namespace std;

int main(){

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

	return 0;
}

/*
Sample Input
ab@5C1@8050
@99+1=1@90
Output for the Sample Input
abCCCCC10000000050
999999999+1=1000000000
*/