#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll k;
  cin >> k;
  if (k < 10) {
    for (int i = 1; i <= k; i++) {
      cout << i << endl;
    }
    return 0;
  }
  vector<ll> ans;
  for (int i = 1; i < 10; i++) {
    ans.push_back(i);
  }
  ll x = 10;
  ll y = 9;
  while (ans.size() < k) {
    for (int i = 1; i <= 9; i++) {
      ans.push_back(x * i + y);
    }
    x *= 10;
    y = y * 10 + 9;
  }
  for (int i = 0; i < k; i++) {
    cout << ans[i] << endl;
  }
}
