#include <iostream>
#include <cstdio>
#include <string>
using namespace std;

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