#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long k;
  while (cin >> k) {
    long long cnt = 0, sum = 0, add = 10, ck = 2;
    for (int j = 1; j <= 9; j++) {
      cout << j << endl;
    }
    sum = 9;
    for (long long i = 10; i <= k; i++) {
      long long p = sum;
      cnt = 0;
      while (p > 0) {
        p /= 10;
        p = p % 10;
        cnt++;
      }
      if (cnt > ck) {
        add = add * 10;
        ck++;
      } else {
        sum += add;
        cout << sum << endl;
      }
    }
  }
  return 0;
}
