#include <bits/stdc++.h>
using namespace std;
void build(string &s, int i, int del) {
  int k = s.size() - 1;
  for (int(j) = (i); (j) < (s.size()); ++(j)) s[j] = '0';
  while (del > 9) {
    s[k] = '9';
    del -= 9;
    k--;
  }
  s[k] = del + '0';
}
int main() {
  int n;
  cin >> n;
  int b[301];
  b[0] = 0;
  for (int(i) = (0); (i) < (n); ++(i)) cin >> b[i + 1];
  string next = "";
  for (int(i) = (1); (i) < (n + 1); ++(i)) {
    int del = b[i] - b[i - 1];
    if (del <= 0) {
      del = abs(del);
      int k = next.size() - 1, sum = 0;
      while (k >= 0 && (next[k] == '9' || sum - 1 < del)) {
        sum += next[k] - '0';
        k--;
      }
      if (k < 0) {
        next = "1" + next;
        build(next, 1, b[i] - 1);
      } else {
        next[k]++;
        build(next, k + 1, sum - 1 - del);
      }
    } else {
      int k = next.size() - 1;
      while (k >= 0 && del > 0) {
        if (next[k] < '9') {
          int x = min('9' - next[k], del);
          del -= x;
          next[k] += x;
        }
        k--;
      }
      while (del > 9) {
        next = "9" + next;
        del -= 9;
      }
      if (del > 0) next = string(1, del + '0') + next;
    }
    cout << next << endl;
  }
  return 0;
}
