#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
int main() {
  ll K;
  cin >> K;
  for (ll i = 1; i <= K; i++) {
    ll ans = 0;
    ll res = 1;
    ll x = i;
    while (x > 0) {
      ans += res * min<ll>(x, 9);
      x -= min<ll>(x, 9);
      res *= 10;
    }
    cout << ans << endl;
  }
}
