// review

#include <iostream>
#include <vector>

using namespace std;
typedef long long ll;
const ll INF = 1e15+10;

ll k;

ll f(ll n) {
  ll res = 0;
  while (n > 0) {
    res += n % 10;
    n /= 10;
  }
  return res;
}

double g(ll n) {
  return (double)n / f(n);
}

vector<ll> v;

void check(ll n) {
  double cur = g(n);
  while (!v.empty()) {
    ll prev = v[v.size() - 1];
    if (g(prev) > cur) {
      v.pop_back();
    } else {
      break;
    }
  }
  v.push_back(n);
}

void solve() {
  double minVal = INF;
  double tmp = 0;
  for (int i=1;i<100;i++) {
    check(i);
  }

  ll base = 1;
  while (base < 1e13) {
    for (int i=100;i<1000;i++) {
      ll val = i * base + base - 1;
      check(val);
    }
    base *= 10;
  }
  for (int i=0;i<k;i++) {
    cout << v[i] << endl;
  }
}

int main() {
  cin >> k;
  solve();
}
