#include<iostream>
using namespace std;
int main(void)
{
  char str[100]={0};
  while(cin>>str)
    {
      int i=0;
      while(str[i]!=0)
	{
	  if(str[i]=='@')
	    {
	      int n=str[i+1]-'0';
	      for(int j=0;j<n;j++)
		{
		  cout<<str[i+2];
		}
	      i+=3;
	    }
	  
	  cout<<str[i];
	  i++;  
	}
      cout<<endl;
      
    }
  return 0;
}