#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int k;
  long long i, d, s, n;
  vector<double> sunuke;
  double ss;
  double ms = 1000000000000000;
  cin >> k;
  for (i = 10000000; i > 0; i--) {
    s = 0;
    n = i;
    while (n) {
      d = n % 10;
      s = s + d;
      n = n / 10;
    }
    ss = (double)i / s;
    if (ss <= ms) {
      sunuke.push_back(i);
      ms = ss;
    }
  }
  sort(sunuke.begin(), sunuke.end());
  for (i = 0; i < k; i++) {
    cout << sunuke[i] << endl;
  }
  return 0;
}
