/** * author: ytsmash * created: 15.08.2021 10:24:54 **/ #include using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(x) x.begin(), x.end() const long double EPS = 1e-10; const long long INF = 1e18; const long double PI = acos(-1.0L); using P = pair; int main() { int N; cin >> N; vector c(9); rep(i, 9) { cin >> c[i]; } for (int i = 8; i >= 0; i++) { for (int j = 0; j < c[i]; j++) { cout << i + 1; } } cout << "\n"; }