#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned int K, A, B, C, D, E;
  cin >> K;
  for (int i = 1; i <= K; i++) {
    A = i / 9;
    B = i % 9;
    C = 0;
    for (int m = 0; m < A; m++) {
      D = 1;
      for (int j = 0; j < m; j++) {
        D = D * 10;
      }
      C += 9 * D;
    }
    E = 1;
    for (int j = 0; j < A; j++) {
      E = E * 10;
    }
    cout << B * E + C << endl;
  }
  return 0;
}
