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

int main() {
    string s1;
    cin >> s1;
    string s2;
    for (int i=0;i<s1.size();++i) {
        char c = s1[i];
        if (c == @){
           int d = s1[i+1];
           char e = s1[i+2];
           for (int t=0;t<d;++t){
           s2.insert(s2.end(), e);
           }
           }
        else{
           s2.insert(s2.end(), c);
           }
    return 0;
}
