#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  int cnt = 0;
  bool done = false;
  for (int i = 0;; ++i) {
    if (done) break;
    for (int j = 1; j <= 9; ++j) {
      stringstream ss;
      ss << j;
      for (int k = 0; k < i; ++k) {
        ss << 9;
      }
      cout << ss.str() << endl;
      ++cnt;
      if (cnt == K) {
        done = true;
        break;
      }
    }
  }
  return 0;
}
