#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K;
  cin >> K;
  int keta = 0;
  long long ans = 0, i = 0, ansa[200010] = {}, copy[200010] = {};
  for (;;) {
    for (long long j = 2; j < 11; j++) {
      ans = j * pow(10, keta) - 1;
      ansa[i++] = ans;
      copy[i - 1] = ans;
    }
    keta++;
    if (keta > 14) break;
  }
  long long sn[200010] = {}, kazu = 0;
  for (long long i = 0;; i++) {
    if (ansa[i] == 0) break;
    while (copy[i] != 0) {
      sn[i] += copy[i] % 10;
      copy[i] /= 10;
    }
    kazu++;
  }
  long long cnt = 0, ansb = 0;
  bool flag;
  for (;;) {
    flag = true;
    for (long long j = ansb + 1; j < kazu; j++) {
      if (ansa[ansb] * sn[j] > ansa[j] * sn[ansb]) {
        flag = false;
        break;
      }
    }
    if (flag) {
      cout << ansa[ansb] << endl;
      cnt++;
    }
    if (cnt >= K) break;
    ansb++;
  }
  return 0;
}
