#include <bits/stdc++.h>
using namespace std;
inline long long toInt(string s) {
  long long v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
int s(long long x) {
  int res = 0;
  while (x != 0) {
    res += x % 10;
    x /= 10;
  }
  return res;
}
long long make(int digit, int n) {
  string s = "";
  s += toString(digit);
  for (int i = 0; i < (int)(n); i++) {
    s += "9";
  }
  return toInt(s);
}
int main() {
  long long k;
  cin >> k;
  vector<double> a;
  vector<long long> ans;
  for (int j = (0); j < (16); ++j) {
    for (int i = (1); i < (10); ++i) {
      long long x = make(i, j);
      ans.push_back(x);
    }
  }
  for (int i = 0; i < (int)(k); i++) {
    cout << ans[i] << endl;
  }
  return 0;
}
