#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename... t>
using V = vector<t...>;
template <typename t>
void print(ostream& os, const t& a) {
  os << a << '\n';
}
template <typename t, typename... v>
void print(ostream& os, const t& a, v&&... b) {
  os << a << ' ';
  print(os, b...);
}
inline ll gen(int s) {
  ll res = 0;
  while (s > 0) {
    if (s % 9)
      res = res * 10 + (s % 9), s -= (s % 9);
    else
      res = res * 10 + 9, s -= 9;
  }
  return res;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int k;
  cin >> k;
  int st = 9 * 14;
  V<ll> tb;
  for (int i = 1; i <= st; ++i) tb.push_back(gen(i));
  V<bool> tr(tb.size(), true);
  ;
  for (int i = 1; i <= st; ++i) {
    ll v = tb[i - 1];
    for (int k = i; k <= st; ++k)
      if (v * k > tb[k - 1] * i) tr[i] = false;
  }
  int cnt = k, pt = 0;
  while (cnt > 0) {
    while (tr[pt] == false) ++pt;
    print(cout, tb[pt]);
    ++pt, --cnt;
  }
}
