#include <bits/stdc++.h>
using namespace std;
long long S(long long n) {
  long long s = 0;
  while (n) {
    s += n % 10;
    n /= 10;
  }
  return s;
}
int main() {
  long long K;
  long long s = 1;
  cin >> K;
  pair<long long, long double> max;
  max = make_pair(1, S(1));
  cout << 1 << endl;
  K--;
  for (long long i = 2; K > 0; i++) {
    long long s = i / S(i);
    if (max.second <= s) {
      cout << i << endl;
      max.first = i;
      max.second = s;
      K--;
    }
  }
  return 0;
}
