#include <bits/stdc++.h>
#define FOR(i,j,k) for(int (i)=(j);(i)<(int)(k);++(i))
#define rep(i,j) FOR(i,0,j)

using namespace std;
typedef long long ll;
ll s(ll x) {
  ll re = 0;
  while (x > 0) {
    re += x % 10;
    x /= 10;
  }
  return re;
}

bool cmp(ll x, ll y) {
  return x*s(y) <= y * s(x);
}

void solve(int K) {
  ll d = 1, cur = 0;
  rep(i, K) {
    ll x = cur + d;
    ll y = cur + d * 10;
    if (cmp(x, y)) {
      cur = x;
    } else {
      cur = y;
      d *= 10;
    }
    cout << cur << endl;
  }
}

int main() {
  int K;
  cin >> K;
  solve(K);
  return 0;
}