#include <bits/stdc++.h>
using namespace std;
pair<long long, long long> digit_sum(long long d) {
  long long dd = d;
  long long res = 0;
  long long count = 0;
  while (dd > 0) {
    res += dd % 10;
    dd /= 10;
    count++;
  }
  return make_pair(count, res);
}
long long sunuke(long long n) {
  pair<long long, long long> count_sum = digit_sum(n);
  long long a = n / count_sum.second;
  long long b = n;
  for (int i = 1; i <= count_sum.first; i++) {
    long long cand =
        n - ((long long)(n % (long long)pow(10, i))) + pow(10, i) - 1;
    if (cand <= n) {
      continue;
    }
    pair<long long, long long> p = digit_sum(cand);
    if (a > cand / p.second) {
      a = cand / p.second;
      b = cand;
    }
  }
  return b;
}
vector<long long> d(long long k) {
  vector<long long> res;
  res.push_back(1);
  long long i = 2;
  while ((long long)res.size() < k) {
    i = sunuke(i);
    res.push_back(i);
    i++;
  }
  return res;
}
int main() {
  long long k;
  cin >> k;
  vector<long long> res = d(k);
  for (auto i : res) {
    cout << i << endl;
  }
}
