#include <iostream> using namespace std; int main() { int a[10] = { 0 }; for (int i = 0; i < 10; ++i){ cin >> a[i]; } int min = 0; for (int i = 1; i < 10; ++i){ if (a[i] != 0){ cout << i; --a[i]; break; } } for (int i = 0; i < 10; ++i){ while (a[i]--){ cout << i; } } cout << endl; return 0; }