#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
int getSum(ll N) {
  int sm = 0;
  while (0 < N) {
    ll tmp = N % 10;
    sm += (int)tmp;
    N /= 10;
  }
  return sm;
}
ll getAll9(ll N) {
  ll all9 = 0;
  int times = 0;
  while (0 < N) {
    times++;
    ll tmp = N / 10;
    if (tmp == 0)
      all9 = pow((ll)10, times - 1) * (N % 10) + all9;
    else
      all9 = all9 * 10 + 9;
    N /= 10;
  }
  return all9;
}
void f(int K) {
  ll N = 1;
  for (int i = (0); i < (K); ++i) {
    ll sunuke = N / (ll)getSum(N);
    ll a9 = getAll9(N);
    ll minsunuke = a9 / (ll)getSum(a9);
    if (minsunuke < sunuke) {
      cout << a9 << endl;
      N = a9;
    } else
      cout << N << endl;
    N++;
  }
}
int main() {
  int K;
  cin >> K;
  f(K);
  return 0;
}
