#include <iostream>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int main()
{
	int i, j, n;
	char c[100], b, d;
	string s;
	while (cin >> c)
	{
		if (cin.eof()) break;
		s = "";
		for (i = 0; i < strlen(c);)
		{
			if (c[i] == '@')
			{
				d = c[++i];
				n = atoi(&d);
				b = c[++i];
				for (j = 0; j < n; j++)
				{
					s += b;
				}
			}
			else
			{
				s += c[i];
			}
			i++;
		}
		cout << s << endl;
	}
	return 0;
}