#include <bits/stdc++.h>
using namespace std;
double f(long long a) {
  long long c = 0, b = a;
  while (b) c += b % 10, b /= 10;
  return a / c;
}
long long q;
signed main() {
  cin >> q;
  long long a = 1;
  long long b = 1;
  while (q--) {
    if (f(a) > f(a + b)) {
      a += b * 9;
      b *= 10;
      q++;
    } else {
      cout << a << endl;
      a += b;
    }
  }
  return 0;
}
