#include <bits/stdc++.h>
using namespace std;
uint64_t S(uint64_t n) {
  uint64_t ans = 0;
  while (n > 0) {
    ans += n % 10;
    n /= 10;
  }
  return ans;
}
int main() {
  int K;
  cin >> K;
  uint64_t n = 9, n_max = 9, diff = 10;
  double max = 1;
  for (uint64_t k = 1; k < 10 && k <= K; ++k) cout << k << endl;
  for (uint64_t k = 10; k <= K;) {
    n += diff;
    double temp = (double)n / S(n);
    if (temp >= max) {
      cout << n << endl;
      max = temp;
      diff = n - n_max;
      n_max = n;
      ++k;
    }
  }
  return 0;
}
