#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k, x;
  x = 1000000000000000;
  vector<long long> a(x);
  vector<double> aa(x);
  cin >> k;
  for (long long i = 0; x > i; i++) {
    a.at(i) = i + 1;
  }
  for (long long i = 0; x > i; i++) {
    long long b = 0;
    for (long long j = 1; a.at(i) >= j; j *= 10) {
      if (j = 1)
        b += a.at(i) % 10;
      else
        b += (a.at(i) / j) % 10;
    }
    aa.at(i) = aa.at(i) / b;
  }
  sort(aa.begin(), aa.end());
  for (long long i = 0; k > i; i++) {
    cout << aa.at(i) << endl;
  }
}
