#include <bits/stdc++.h>
using namespace std;
using ll = long long;

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

int main() {
  int k;
  cin >> k;
  ll ans = 1, add = 1;
  for (int i = 0; i < k; ++i) {
    cout << ans << endl;
    if (sum(ans + add) * (ans + add * 10) < sum(ans + add * 10) * (ans + add))
      add *= 10;
    ans += add;
  }
}
