#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main(void){
	int num,cut_i,cut_j,cut_k,len;
	char ans[1000],data[1000];
	char ch;

	while(scanf("%s",data) !=EOF){
		for(cut_i=0;cut_i<1000;cut_i++){
			ans[cut_i]=0;
		}
		len = strlen(data);
		cut_j=0;
		for(cut_i=0;cut_i<len;cut_i++){
			if(strncmp(data+cut_i,"@",1)){
				num = atoi(data+cut_i+1);
				for(cut_k=0;cut_k<num;cut_k++){
					strncpy(ans+cut_j,data+cut_i+2,1);
					cut_j++;
				}
				cut_i+=2;
			}
			else {
				strncpy(ans+cut_j,data+cut_i+2,1);
				cut_j++;
			}
		}
		printf(ans,"\n");
	}

	return 0;
}