#include <bits/stdc++.h>
double s(double k) {
  double p, res = 0;
  while (k > 0) {
    p = k;
    while (p >= 1000) p -= 1000;
    while (p >= 10) p -= 10;
    res += p;
    k -= p;
    k /= 10;
  }
  return res;
}
int main() {
  double k;
  scanf("%lf", &k);
  double i, j;
  double min, minv;
  for (i = 1;; i++) {
    int keta = 0;
    double a = i + 1;
    while (a > 0) {
      keta++;
      j = a;
      while (j >= 10) j -= 10;
      a -= j;
      a /= 10;
    }
    min = 999999;
    minv = 99999999999;
    for (j = i; j <= pow(10, keta) + 9; j++) {
      if (j / s(j) < minv) {
        min = j;
        minv = j / s(j);
      }
    }
    printf("%.0lf\n", min);
    i = min;
    k--;
    if (k == 0) break;
  }
  return 0;
}
