#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll mod = 1000000007;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, -1, 0, 1};
const ll INF = 1E+18;
double g(ll x) {
  ll sum = 0;
  ll y = x;
  while (x) {
    sum += (x % 10);
    x /= 10;
  }
  return (double)y / sum;
}
ll f(ll x) {
  if (x <= 9) return x;
  ll res = INF;
  double v = 1.0E+18;
  ll ten = 10LL;
  for (int i = (0); i < (17); ++i) {
    ll y = ten * (x / ten + 1LL) - 1LL;
    ten *= 10LL;
    double z = g(y);
    if (z < v) {
      v = z;
      res = y;
    }
  }
  return res;
}
int main() {
  ll k;
  cin >> k;
  ll num = 0;
  ll now = 1;
  cout << now << endl;
  while (k--) {
    now = f(now + 1);
    cout << now << endl;
  }
  return 0;
}
