#include <bits/stdc++.h>
using namespace std;
const int INF = 1001001001;
const unsigned long long LINF = 1e18;
const double pi = 3.1415926535897932;
const string endstr = "\n";
template <typename T>
T gcd(T a, T b) {
  return (a == 0) ? b : gcd(b % a, a);
}
template <typename T>
T lcm(T a, T b) {
  return a / gcd(a, b) * b;
}
bool p_comp_fs(const pair<unsigned long long, unsigned long long> p1,
               const pair<unsigned long long, unsigned long long> p2) {
  return p1.first < p2.first;
};
bool p_comp_fg(const pair<unsigned long long, unsigned long long> p1,
               const pair<unsigned long long, unsigned long long> p2) {
  return p1.first > p2.first;
};
bool p_comp_ss(const pair<unsigned long long, unsigned long long> p1,
               const pair<unsigned long long, unsigned long long> p2) {
  return p1.second < p2.second;
};
bool p_comp_sg(const pair<unsigned long long, unsigned long long> p1,
               const pair<unsigned long long, unsigned long long> p2) {
  return p1.second > p2.second;
};
template <typename T>
vector<T> uniquen(vector<T> vec) {
  vec.erase(unique(vec.begin(), vec.end()), vec.end());
  return vec;
}
int main() {
  unsigned long long k;
  cin >> k;
  string nines = "";
  map<unsigned long long, unsigned long long> m;
  for (unsigned long long i = 0; i < 15; i++) {
    for (unsigned long long j = (1); j < 10; j++) {
      auto c_str = to_string(j) + nines;
      unsigned long long c = stoll(c_str);
      unsigned long long s = 0;
      for (unsigned long long k = 0; k < c_str.size(); k++) {
        s += stoll(c_str.substr(k, 1));
      }
      m[c] = s;
    }
    nines += "9";
  }
  vector<unsigned long long> ans;
  for (auto it = m.begin(); it != m.end(); it++) {
    bool ok = true;
    for (auto tmp_it = it; tmp_it != m.end(); tmp_it++) {
      if (it->first * tmp_it->second > it->second * tmp_it->first) {
        ok = false;
        break;
      }
    }
    if (ok) ans.push_back(it->first);
  }
  for (unsigned long long i = 0; i < k; i++) cout << ans[i] << endstr;
  return 0;
}
