#include <bits/stdc++.h>
using namespace std;
inline void fileio(const char* in, const char* out) {
  freopen(in, "r", stdin);
  freopen(out, "w", stdout);
}
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> VI;
typedef vector<bool> VB;
typedef vector<ll> VL;
const char nl = '\n';
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fll;
const ld EPS = 1e-9, PI = acos(-1);
int s(ll x) {
  int a = 0;
  while (x) {
    a += x % 10;
    x /= 10;
  }
  return a;
}
ld snuk(ll x) { return (ld)x / (ld)s(x); }
int main() {
  atexit([]() { cerr << "Time: " << (ld)clock() / CLOCKS_PER_SEC << nl; });
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(12);
  int k;
  cin >> k;
  ll ans = 1;
  VI out;
  while (out.size() < k) {
    while (out.size() > 0 && snuk(out.back()) > snuk(ans)) {
      out.pop_back();
    }
    out.push_back(ans);
    if (ans < 9) {
      ans++;
    } else {
      ans += 10;
    }
  }
  for (int v : out) {
    cout << v << nl;
  }
  return 0;
}
