#include <bits/stdc++.h>
using namespace std;
int S(int n) {
  int r = 0;
  for (int t = n; t > 0; t /= 10) {
    r += t % 10;
  }
  return r;
}
double Snuke(int n) { return n / S(n); }
int pow_int(int a, int n) {
  int r = 1;
  for (int i = 0; i < n; ++i) {
    r *= a;
  }
  return r;
}
int f(int n) {
  int x = n;
  int y;
  for (int d = 0; d <= log10(n) + 1; ++d) {
    y = n - (n % pow_int(10, d)) + (pow_int(10, d) - 1);
    if (Snuke(x) > Snuke(y)) {
      x = y;
    }
  }
  return x;
}
int main(void) {
  int K;
  cin >> K;
  int N = 0;
  for (int i = 0; i < K; ++i) {
    N = f(N + 1);
    cout << N << endl;
  }
  return 0;
}
