#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K;
  cin >> K;
  long long count = 0;
  bool flg = false;
  if (K < 10) {
    for (int i = 1; 1 < 10; ++i) {
      if (K > count) {
        cout << i << endl;
        ++count;
      } else
        break;
    }
  } else {
    for (int i = 1; i < 10; ++i) {
      cout << i << endl;
    }
    count += 9;
    for (long long i = 10; i < 100000000000000000; i *= 10) {
      if (flg) break;
      for (int j = 2; j <= 10; ++j) {
        if (K > count) {
          cout << i * j - 1 << endl;
          ++count;
        } else {
          flg = true;
          break;
        }
      }
    }
  }
}
