#include <bits/stdc++.h>
using namespace std;
const long long INF = numeric_limits<long long int>::max();
const long long MOD = 1000000007;
const long double PI = 3.1415926;
template <class T>
T &chmin(T &a, const T &b) {
  return a = min(a, b);
}
template <class T>
T &chmax(T &a, const T &b) {
  return a = max(a, b);
}
long long int n, m, k, ans = 0, sum = 0, cnt = 0;
string s;
vector<pair<double, long long int> > v;
vector<long long int> va;
long long int d[] = {
    1,       2,       3,       4,       5,       6,       7,       8,
    9,       19,      29,      49,      79,      99,      199,     299,
    399,     499,     599,     699,     799,     899,     999,     1099,
    1199,    1299,    1399,    1499,    1599,    1699,    1799,    1899,
    1999,    2999,    3999,    4999,    5999,    6999,    7999,    8999,
    9999,    10999,   11999,   12999,   13999,   14999,   15999,   16999,
    17999,   18999,   19999,   20999,   21999,   22999,   23999,   24999,
    25999,   26999,   27999,   28999,   29999,   39999,   49999,   59999,
    69999,   79999,   89999,   99999,   109999,  119999,  129999,  139999,
    149999,  159999,  169999,  179999,  189999,  199999,  209999,  219999,
    229999,  239999,  249999,  259999,  269999,  279999,  289999,  299999,
    309999,  319999,  329999,  339999,  349999,  359999,  369999,  379999,
    389999,  399999,  499999,  599999,  699999,  799999,  899999,  999999,
    1099999, 1199999, 1299999, 1399999, 1499999, 1599999, 1699999, 1799999,
    1899999, 1999999, 2099999, 2199999, 2299999, 2399999, 2499999, 2599999,
    2699999, 2799999, 2899999, 2999999, 3099999, 3199999, 3299999, 3399999,
    3499999, 3599999, 3699999, 3799999, 3899999, 3999999, 4099999, 4199999,
    4299999, 4399999, 4499999, 4599999, 4699999, 4799999, 4899999, 4999999,
    5999999, 6999999, 7999999, 8999999, 9999999};
int main() {
  cin >> k;
  vector<string> vv;
  for (long long int i = (long long int)(0); i < (long long int)(149); i++) {
    vv.push_back(to_string(d[i]));
  }
  s = "99999";
  for (long long int q = (long long int)(0); q < (long long int)(5); q++) {
    s += '9';
    for (long long int i = (long long int)(1); i < (long long int)(10); i++) {
      string aa, bb;
      aa = i + '0';
      bb = '9';
      bool f = false;
      for (long long int j = (long long int)(0); j < (long long int)(10); j++) {
        if (i >= s.size()) {
          bb = '9';
          vv.push_back(aa + bb + s);
          break;
        } else {
          bb = j + '0';
          vv.push_back(aa + bb + s);
        }
      }
    }
  }
  for (long long int i = (long long int)(0); i < (long long int)(k); i++) {
    cout << vv[i] << endl;
  }
}
