#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K;
  cin >> K;
  vector<int> A(0);
  for (int i = 1; i < 10; ++i) A.push_back(i);
  for (long long i = 10; i < 1000000000000000; i *= 10) {
    for (int j = 2; j <= 10; j++) {
      A.push_back(j * i - 1);
    }
  }
  for (int i = 0; i < K; ++i) {
    cout << A.at(i) << endl;
  }
}
