#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long k;
  cin >> k;
  unsigned long long fi[10] = {1, 1, 2, 2, 3, 3, 4, 4, 5, 5};
  unsigned long long x = 1, c = 1, p = 1, fifi = 1, y = 1;
  for (unsigned long long i = 1; i <= k; i++) {
    cout << x << endl;
    if (c != 9) {
      x += p;
      c++;
    } else {
      if (fifi == fi[y]) {
        p *= 10;
        x += p;
        c = 1;
        fifi = 1;
        y++;
      } else {
        x += p;
        c = 1;
        fifi++;
      }
    }
  }
  return 0;
}
