#include <bits/stdc++.h>
using ll = long long;
using ull = unsigned long long;
using uint = unsigned int;
using namespace std;
static ll inf = 1000000000000000L;
ll sum(ll x) {
  ll res = 0;
  while (x > 0) {
    res += x % 10;
    x /= 10;
  }
  return res;
}
ll next(ll x) {
  vector<ll> xs;
  ll d = 1;
  ll minv = inf;
  ll mini = -1;
  while (d <= inf) {
    ll y = (x / d) * d + (d - 1);
    while ((y / d) % 10 < 9) {
      y += d;
      ll z = y / sum(y);
      if (minv > z) {
        minv = z;
        mini = y;
      }
    }
    d *= 10;
  }
  return mini;
}
int main() {
  ull K;
  cin >> K;
  string suf("");
  ll x = 1;
  for (auto i = 0; i < K; i++) {
    cout << x << endl;
    x = next(x);
  }
  return 0;
}
