#include <bits/stdc++.h>
using namespace std;
long long f(long long n) {
  long long cnt = 0;
  while (n) {
    cnt += (n % 10);
    n /= 10;
  }
  return cnt;
}
int main() {
  long long n, k;
  cin >> k;
  long long s = 1, d = 1;
  for (int i = 0; i < k; i++) {
    cout << s << endl;
    while ((s + d) / f(s + d) > (s + 2 * d) / f(s + 2 * d)) {
      d *= 10;
    }
    s += d;
  }
}
