#include <bits/stdc++.h>
long long pow_10(int x) {
  long long sub = 1;
  if (x == 0) {
    return 1;
  } else {
    while (x) {
      sub = sub * 10;
      x--;
    }
    return sub;
  }
}
int main() {
  std::vector<long long> sunuke;
  for (int i = 1; i < 10; i++) {
    sunuke.push_back(i);
  }
  long long sub = 0;
  int subsub = 0;
  long long subsubsub = 0;
  for (int i = 1; i < 15; i++) {
    sub = 0;
    subsub = i;
    while (subsub) {
      sub += 9 * pow_10(subsub - 1);
      subsub--;
    }
    subsubsub = sub;
    for (int j = 1; j <= 9; j++) {
      sub = subsubsub + j * pow_10(i);
      sunuke.push_back(sub);
    }
  }
  long long K;
  std::cin >> K;
  for (int i = 0; i < K; i++) {
    std::cout << sunuke[i] << std::endl;
  }
}
