#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
inline T GET() {
  T x;
  cin >> x;
  return x;
}
void init();
void solve();
signed main() {
  init();
  solve();
}
ll K;
ll res;
void init() { cin >> K; }
void calc(ll a, ll& b) {
  ll t = a;
  b = 0;
  while (t) {
    b += t % 10;
    t /= 10;
  }
}
void add(ll& x, ll& keta) {
  if ((x / keta) % 10 < 9) {
    x += keta;
    return;
  }
  keta *= 10;
  if (x / keta) {
    x += keta;
    return;
  }
  x = keta + 9;
  keta = 10;
}
bool isok(ll x, ll keta) {
  ll a = x;
  ll b = 0;
  calc(a, b);
  ll a2 = x;
  ll b2 = 0;
  add(a2, keta);
  calc(a2, b2);
  return a * b2 <= a2 * b;
}
void next(ll& x, ll& keta) {
  if (x < 9) {
    x++;
    return;
  }
  add(x, keta);
  while (!isok(x, keta)) {
    add(x, keta);
  }
}
void solve() {
  res = 1;
  ll keta = 1;
  while (K--) {
    cout << res << endl;
    next(res, keta);
  }
}
