#include <bits/stdc++.h>
using namespace std;
int S(long long N) {
  int r = 0;
  while (N > 0) {
    r += N % 10;
    N /= 10;
  }
  return r;
}
int N_max(long long N) {
  long long r = 1;
  while (N > 0) {
    r *= 10;
    N /= 10;
  }
  return r;
}
int main() {
  long long K;
  cin >> K;
  long long A = 1;
  for (int i = (0); i < (K); ++i) {
    cout << A << endl;
    long long B = A + 1;
    long long M = N_max(B);
    long long C = B;
    long long base = 1;
    while (B < M) {
      if (C * S(B) > B * S(C)) C = B;
      if (B % (base * 10) == base * 10 - 1) base *= 10;
      B += base;
    }
    A = C;
  }
  return 0;
}
