#include <bits/stdc++.h>
double getSn(double n);
int main(void) {
  int i, j;
  long x = 1;
  int k;
  long n = 1;
  scanf("%d", &k);
  puts("1");
  for (i = 1; i < k; i++) {
    if (getSn(x + n) > getSn(x + n + n)) {
      n *= 10;
    }
    x += n;
    printf("%ld\n", x);
  }
  return 0;
}
double getSn(double n) {
  double sn = 0;
  int tn = n;
  do {
    sn += tn % 10;
    tn /= 10;
  } while (tn != 0);
  return n / sn;
}
