#include <bits/stdc++.h>
using namespace std;
long funcS(long N);
int main() {
  long K;
  cin >> K;
  long i = 1, num = 1, nines = 0;
  float sunuke = 0;
  long pp = 0;
  while (i <= K) {
    long p;
    if (num >= 10) {
      num = 1;
      nines++;
    }
    p = num;
    for (long k = 0; k < nines; k++) {
      p *= 10;
      p += 9;
    }
    if (pp != 0) {
      p -= pow(10, nines - 1) * pp;
    }
    long funs = funcS(p);
    if (sunuke <= (float)p / funs) {
      cout << p << endl;
      sunuke = (float)p / funs;
      pp = 0;
    } else {
      pp++;
    }
    num++;
    i++;
  }
}
long funcS(long N) {
  long keta = 0;
  for (long i = N; i != 0; keta++) {
    i /= 10;
  }
  long num = 0;
  long temN = N;
  long temN2 = N;
  for (long i = keta - 1; i >= 0; i--) {
    temN /= 10;
    num += temN2 - temN * 10;
    temN2 /= 10;
  }
  return num;
}
