#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <math.h>
using namespace std;

int main()
{
	char in[101];
	while(scanf("%s",&in) != EOF){
		for(int i = 0; in[i] != '\0'; ++i){
			if(in[i] == '@'){
				for(int j=0; j<(in[i+1]-'0'); ++j){
					cout << in[i+2];
				}
				i = i + 2;
			}
			else cout << in[i];
		}
		cout << endl;
	}
}