#include <bits/stdc++.h>
using namespace std;
long long min_num[161];
int main() {
  for (int i = 1; i < 161; i++) {
    int q = i / 9;
    int r = i % 9;
    if (q == 0)
      min_num[i] = r;
    else {
      long long num = r;
      for (int i = 0; i < q; i++) {
        num = num * 10 + 9;
      }
      min_num[i] = num;
    }
  }
  vector<long long> ans(0);
  double mmin = (double)min_num[160] / 160;
  for (int i = 159; i >= 1; i--) {
    if (mmin >= (double)min_num[i] / i) {
      ans.push_back(min_num[i]);
      mmin = (double)min_num[i] / i;
    }
  }
  reverse(ans.begin(), ans.end());
  int K;
  cin >> K;
  for (int i = 0; i < K; i++) {
    cout << ans.at(i) << endl;
  }
}
