#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K;
  cin >> K;
  for (int i = 1; i <= K; i++) {
    int j;
    if (i % 9 != 0)
      j = i % 9;
    else
      j = 9;
    int k = (i - 1) / 9;
    string l;
    l = std::to_string(j);
    if (k != 0) {
      for (int m = 1; m <= k; m++) {
        l.push_back('9');
      }
    }
    cout << l << endl;
  }
}
