#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1000000007;
const ll INF = 1000000099;
ll fsd(ll n) {
  ll sum = 0;
  while (n > 0) {
    sum += n % 10;
    n /= 10;
  }
  return sum;
}
signed main() {
  ll k, sn = 1, add = 1;
  cin >> k;
  for (ll i = 1; i <= k; i++) {
    cout << sn << endl;
    if (sn / fsd(sn) < (sn + add) / fsd(sn + add) &&
        (sn + add) / fsd(sn + add) > (sn + 2 * add) / fsd(sn + 2 * add)) {
      add *= 10;
    }
    sn += add;
  }
}
