#include <bits/stdc++.h>
using namespace std;
const long long infl = 9223372036854775807LL;
long long f(long long n) {
  long long sum = 0, ret = n;
  double m = DBL_MAX, tmp;
  string ns = to_string(n);
  for (int i = 0; i < ns.size(); i++) sum += ns[i] - '0';
  for (int i = ns.size() - 1; i >= 1; i--) {
    sum += '9' - ns[i];
    ns[i] = '9';
    tmp = (double)n / sum;
    if (m > tmp) {
      ret = stoull(ns);
      m = tmp;
    }
  }
  return ret;
}
int main() {
  {
    cin.tie(0);
    ios::sync_with_stdio(false);
  };
  int k;
  long long n = 0, a = 1;
  cin >> k;
  while (k && n < 9) {
    n++;
    printf("%lld\n", n);
    k--;
  }
  while (k) {
    n = f(n + 1);
    printf("%lld\n", n);
    k--;
  }
  return 0;
}
