#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<ll, ll>;
ll second(ll n) {
  ll ans = 0;
  while (n) {
    ans += n % 10;
    n /= 10;
  }
  return ans;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll n;
  cin >> n;
  if (n <= 9) {
    for (ll i = 1; i <= n; i++) cout << i << "\n";
  } else {
    n -= 9;
    for (ll i = 1; i <= 9; i++) cout << i << "\n";
    ll f = 1, b = 1;
    while (n > 0) {
      for (ll i = pow(10, f - 1); n > 0 && i < pow(10, f); i++) {
        n--;
        cout << i;
        for (ll k = 1; k <= b; k++) cout << 9;
        cout << "\n";
      }
      if (f % 2 == b % 2)
        b++;
      else
        f++;
    }
  }
}
