#include <bits/stdc++.h>
using namespace std;
long long N, M, H, W, K, Q, A, B, L, R;
string S, T;
const long long MOD = (1e+9) + 7;
const long long INF = 1LL << 60;
int main() {
  cin >> K;
  long long out = 1, keta = 1;
  vector<long long> bit10(17, 1);
  for (int i = 1; i < 17; i++) bit10[i] = bit10[i - 1] * 10;
  for (int i = 0; i < K; i++) {
    cout << out << endl;
    if (out + 1 < bit10[keta]) {
      ++out;
    } else {
      out += bit10[keta];
      ++keta;
    }
  }
}
