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

int main()
{
	string str;
	int cnt;
	while (cin >> str)
	{
		for (int i = 0; i < str.size(); i++)
		{
			if (str[i] =='@')
			{
				cnt = str[i + 1] - '0';		//cnt=str[i+2]を繰り返す回数
				for (int j = 0; j < cnt; j++)
				{
					cout << str[i + 2];
				}
				i+=2;	//str[i+1] , str[i+2]の分カウントを進める
			}
			else
			{
				cout << str[i];
			}
		}
		cout << endl;
	}
	return 0;
}