#include <bits/stdc++.h>
using namespace std;
double delta(long long x) {
  string second = to_string(x);
  int ds = 0;
  for (int i = 0; i < second.length(); i++) {
    ds += (int)second[i] - '0';
  }
  double ret = 1.0 * x / (double)ds;
  return ret;
}
int main() {
  int ub = 100, cnt = 0;
  cin >> ub;
  long long a = 0, b = 1;
  for (int i = 0; i < ub; i++) {
    if ((a / b) % 10 == 9 && delta(a + b) > delta(a * 10 + b)) b *= 10;
    a += b;
    cout << a << endl;
  }
  return 0;
}
