#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k;
  cin >> k;
  long long seq9 = 0;
  int len9 = 0;
  long long exp10 = 1;
  double max_v = 0.0;
  while (k > 0) {
    for (int i = 1; i < 10 && k > 0; i++) {
      long long num = exp10 * i + seq9;
      long long v = 1.0 * num / (len9 * 9 + i);
      if (v >= max_v) {
        max_v = v;
        cout << num << endl;
        --k;
      }
    }
    seq9 = 10 * seq9 + 9;
    ++len9;
    exp10 *= 10;
  }
}
