#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  for (int j = 1; j <= K; ++j) {
    int x = j;
    string s = "";
    while (x > 9) {
      s.push_back('9');
      x -= 9;
    }
    if (x > 0) {
      s.push_back('0' + x);
    }
    sort(s.begin(), s.end());
    cout << s << endl;
  }
}
