#include <bits/stdc++.h>
using namespace std;
int count(int n) {
  string s = to_string(n);
  int res = 0;
  for (auto c : s) {
    res += c - '0';
  }
  return res;
}
int main() {
  long long k = 0;
  cin >> k;
  long long d = 1;
  long long pre = 9;
  vector<int> res;
  for (int i = 1; i <= 9; ++i) res.push_back(i);
  for (int i = 2; i <= k; ++i) {
    if ((pre + d) / count(pre + d) > d) {
      d *= 10;
      pre = pre + d;
      for (int j = pre - 9; j <= pre; ++j) {
        if (j / count(j) == pre / count(pre)) res.push_back(j);
      }
    } else {
      pre = pre + d;
      for (int j = pre - 9; j <= pre; ++j) {
        if (j / count(j) == pre / count(pre)) res.push_back(j);
      }
    }
  }
  for (int i = 0; i < k; ++i) {
    cout << res[i];
    if (i != k - 1) cout << endl;
  }
  return 0;
}
