import java.awt.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int num[]=new int[10];
for (int i = 0; i < num.length; i++) {
num[i]=scanner.nextInt();
}
for (int i = 1; i < num.length; i++) {
if (num[i]!=0) {
System.out.print(i);
num[i]–;
break;
}
}
for (int i = 0; i < num.length; i++) {
for (int j = 0; j < num[i]; j++) {
System.out.print(i);
}
}
}
}