#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll digit_sum(ll n) {
  ll res = 0LL;
  while (n) {
    res += n % 10LL;
    n /= 10LL;
  }
  return res;
}
ll next_snuke(ll n) {
  ll now = n;
  ll base = 1;
  ll smallest = n;
  ll d_sum = digit_sum(smallest);
  while (now < 100L * n) {
    ll check = (now / base) % 10L;
    if (check != 9) {
      now += base;
      ll d_sum_now = digit_sum(now);
      if (now * d_sum < smallest * d_sum_now) {
        smallest = now;
        d_sum = d_sum_now;
      }
      if (check == 8) base *= 10L;
    } else
      base *= 10L;
  }
  return smallest;
}
int main() {
  ll k;
  cin >> k;
  ll snuke = 0LL;
  while (k) {
    snuke = next_snuke(snuke + 1LL);
    cout << snuke << endl;
    --k;
  }
  return 0;
}
