#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <cmath>
#include <limits>
#include <sstream>
#include <iomanip>

using namespace std;

int main (void)
{
	string a;

	while (cin >> a)
	{
		int k = 0;
		k = a.size();

		for (int i = 0; i < k - 2; k++)
		{
			if (a.substr(i,1) == "@")
			{cout << "aa" << endl;
				int y = 0;
				y = stoi(a.substr(i + 2,1));
				string w;

				for (int j = 0; j < y; i++)
				{
					w += a.substr(i + 1,1);
				}

				a.substr(i,3) = w;
			}
		}

		cout << a << endl;
	}
}

