#include <cstdio>
#include <cstdint>
#include <vector>
#include <numeric>

int main() {
  std::vector<intmax_t> res(8);
  std::iota(res.begin(), res.end(), 1);

  intmax_t nines=9;
  intmax_t lb=0, ub=9;

  for (int i=0; i<14; ++i) {
    for (intmax_t j=lb; j<=ub; ++j) {
      res.push_back(j*(nines+1)+nines);
    }

    nines = nines*10 + 9;
    if (nines != 99'999'999'999) {
      ++lb;
      ub += 10;
    }
  }

  int K;
  scanf("%d", &K);
  for (int i=0; i<K; ++i)
    printf("%jd\n", res[i]);
}
