#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  string s;
  int a;
  cin>>s;
  for(int i=0;i<s.size();i++){
    if(s[i]=='@'){
      a = s[i+1]-'0';
      for(int j=0;j<a;j++){
	cout<<s[i+2];
      }
      i += 2;

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