#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using vi = vector<int>;
const int mod = 1e9 + 7;
const long double pi = 3.141592653589793238462643383279502884197;
const long double eps = 1e-7;
int main() {
  ll K;
  cin >> K;
  if (K < 10) {
    for (int i = 1; i <= K; ++i) {
      cout << i << endl;
    }
  } else {
    for (int i = 1; i <= 9; ++i) {
      cout << i << endl;
    }
    K -= 9;
    ull buf = 10;
    ull base = 10;
    while (K != 0) {
      if (buf == 10) {
        for (int i = 0; i < 9; ++i) {
          buf += base;
          cout << buf - 1 << endl;
          K--;
          if (K == 0) break;
        }
        base *= 10;
      } else {
        for (int i = 0; i < 10; ++i) {
          buf += base;
          cout << buf - 1 << endl;
          K--;
          if (K == 0) break;
        }
        buf = buf - base;
        base *= 10;
      }
    }
  }
  return 0;
}
