#include <bits/stdc++.h>
constexpr long MOD = 1e9 + 7;
using namespace std;
using P = pair<long, long>;
using VI = vector<long>;
int main() {
  vector<string> s;
  string suffix = "99";
  for (int i = 1; i < 10; i++) s.push_back(to_string(i));
  for (int i = 1; i < 10; i++) s.push_back(to_string(i) + "9");
  while (s.size() < 100000) {
    for (int i = suffix.size() - 1; i < (suffix.size()) * 10; i++) {
      s.push_back(to_string(i) + suffix);
    }
    suffix += "9";
  }
  long k;
  cin >> k;
  for (long(i) = 0; (i) < (k); (i)++) cout << s[i] << endl;
}
