#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = uint64_t;
using P = pair<int, int>;
constexpr double EPS = 1e-9;
constexpr int INF = 1001001001;
constexpr int mod = 1000000007;
template <class T>
inline bool chmax(T& x, T y) {
  if (x < y) {
    x = y;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T& x, T y) {
  if (x > y) {
    x = y;
    return true;
  }
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int K;
  cin >> K;
  map<ll, ll> mp;
  ll cur = 0, mul = 1;
  for (int d = 0; d < 15; ++d) {
    ll S = 9LL * d;
    for (int i = 1; i <= 9; ++i) {
      ll val = mul * i;
      mp[cur + val] = S + i;
    }
    cur = cur * 10 + 9;
    mul *= 10;
  }
  while (K > 0) {
    bool ok = true;
    ll val = -1, S = -1;
    for (auto it : mp) {
      if (val == -1) {
        val = it.first, S = it.second;
      } else {
        if (val * it.second > it.first * S) {
          ok = false;
          break;
        }
      }
    }
    if (ok) {
      cout << val << '\n';
      mp.erase(val);
      --K;
    }
  }
}
