include[HTML_REMOVED]
using namespace std;
char a[100010];
char b[100010];
int ans;
int main() {
cin>>a;
for ( int i=0; a[i]; i ) {
if ( a[i] > ‘1’ && a[i] <= ‘9’ ) {
int x = a[i] - ‘0’;
for ( int j=0; j<x-1; j ) {
b[ans] = a[i-1];
}
continue;
}
b[ans] = a[i];
}
cout << b;
return 0;
}