#include <bits/stdc++.h>
using namespace std;
long long a(long long i) {
  long long c = 0;
  while (i) {
    c += i % 10;
    i = i / 10;
  };
  return c;
}
long long b(long long i) { return i * 10 / a(i); }
int main() {
  long long k, l, m, c;
  cin >> k;
  for (long long i = 2; k > 0; k--) {
    c = i * pow(10, m) - 1;
    if (b(c) > b(c + pow(10, m))) {
      m++;
      i = 2;
      c = c = i * pow(10, m) - 1;
    }
    cout << c << endl;
    i++;
  }
}
