本人是若只多多见谅=(
#include<bits/stdc++.h>
using namespace std;
string a;
void pd(char x,char z){
if(x>='A'&&z<'A'){
int y=z-'0';
for(int i=0;i<y;i++){
cout<<x;
}
return ;
}
if(x>'A'&&z>'A'){
cout<<x;
}
}
int main(){
cin>>a;
for(int i=0;i<a.size()-1;i++){
pd(a[i],a[i+1]);
}
return 0;
}