#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;

  while (cin >> s) {
    for (int i = 0; i < s.size(); ++i) {
      if (s[i] == '@') {
        int x = s[i + 1] - '0';
        cout << string(x, s[i + 2]);
      } else {
        cout << s[i];
      }
    }
    cout << endl;
  }
}