#define scanf_s scanf
//#define gets_s gets
#include <stdio.h>
#include <string>
#include <iostream>
#include <math.h>
using namespace std;
#define MAX 101
#define _MAX 81
int main(void)
{
	char str[MAX], ans[MAX * 9];
	while (gets_s(str, MAX) != NULL) {
		for (int i = 0, j = 0; str[i - 1] != '\0'; ++i) {
			if (str[i] == '@' && str[i + 2] != '\0') {
				if ('0' <= str[i + 1] && str[i + 1] <= '9') {
					for (int k = 0; k < str[i + 1] - '0'; ++k, ++j) {
						ans[j] = str[i + 2];
					}
					i += 2;
				}
				else {
					ans[j] = str[i];
					++j;
				}
			}
			else {
				ans[j] = str[i];
				++j;
			}
		}
		printf("%s\n", ans);
	}
}