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

int main(){

  int n;
  string str;

  while(cin >> str){

    for(int i=0;i<str.size();i++){

      if(str[i]=='@'){
	n=str[i+1]-48;
	for(int j=0;j<n;j++) cout << str[i+2];
	i+=2;
      }

      else cout << str[i];
    }
    cout << endl;
  }
}