import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
for(int i=0;i[HTML_REMOVED]= ‘0’ && s.charAt(i) <= ‘9’)){
System.out.print(s.charAt(i));
}else {
int m = s.charAt(i) - ‘0’;
while(–m != 0){
System.out.print(s.charAt(i - 1));
}
}
}
}
}