#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007ll;
const double EPS = 1e-11;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long k;
  cin >> k;
  for (int i = 1; i < 10 && k > 0; ++i, --k) {
    cout << i << '\n';
  }
  for (int i = 19; i < 100 && k > 0; i += 10, --k) {
    cout << i << '\n';
  }
  for (int i = 199; i < 1000 && k > 0; i += 100, --k) {
    cout << i << '\n';
  }
  long long tmp1 = 99;
  long long tmp2 = 100;
  for (int i = 0; k > 0; ++i) {
    for (long long cnt = 0, j = tmp2 * 10 + tmp1; cnt < 10 && k > 0;
         ++cnt, j += tmp2, --k) {
      cout << j << '\n';
    }
    tmp1 += (tmp1 + 1) * 9;
    tmp2 *= 10;
    for (long long cnt = 0, j = tmp2 * 2 + tmp1; cnt < 9 && k > 0;
         ++cnt, j += tmp2, --k) {
      cout << j << '\n';
    }
  }
  return 0;
}
