#include <bits/stdc++.h>
using namespace std;
long long f(long long i) {
  long long ret = 0;
  while (i != 0) {
    ret += i % 10;
    i /= 10;
  }
  return ret;
}
int main() {
  long long k;
  cin >> k;
  string digit = "";
  set<long long> s;
  for (int i = 0; i < (14); ++i) {
    for (int i = (1); i < (160); ++i) {
      s.insert(stol(to_string(i) + (digit)));
    }
    digit += "9";
  }
  long long cnt = 0;
  bool flg = true;
  for (auto x : s) {
    flg = true;
    for (auto y : s) {
      if (y > x) {
        if (y / f(y) < x / f(x)) {
          flg = false;
        }
      }
    }
    if (flg) {
      cout << x << endl;
      cnt++;
      if (cnt == k) {
        return 0;
      }
    }
  }
  return 0;
}
