#include <bits/stdc++.h>
long long int max(long long int a, long long int b) {
  if (a < b) {
    return b;
  }
  return a;
}
int compare(const void *p0, const void *p1) {
  long long int *P0 = (long long int *)p0;
  long long int *P1 = (long long int *)p1;
  if (*P0 > *P1) return 1;
  if (*P0 < *P1) return -1;
  return 0;
}
int main() {
  long long int j, i, l, k, p = 0, q = 0, r = 0, a, b, c, d, s = 0, h, n, x;
  int e = 0;
  scanf("%lld", &k);
  x = k;
  for (int g = 1; g < 9 && g <= k; g++) {
    printf("%d\n", g);
  }
  for (i = 0; i <= k - 9; i++) {
    b = i / 10;
    c = powl(10, b + 1);
    l = i;
    for (j = 16; j >= 0 && l > 0; j--) {
      a = powl(10, j);
      if (a <= l) {
        s += l / a;
        e = l / a;
        l -= (l / a) * a;
      }
    }
    a = c * (e + 1) - 1;
    printf("%lld\n", a);
  }
  return 0;
}
