#include <bits/stdc++.h>
int digitsum(long long n) {
  int s = 0;
  for (; n > 0; n /= 10) {
    s += n % 10;
  }
  return s;
}
int main(int argc, char const *argv[]) {
  int k, a;
  a = 1;
  long long list[150];
  scanf("%d", &k);
  list[0] = 0;
  for (long long i = 1; a <= k; i *= 10) {
    for (int j = 1; j <= 9; j++) {
      list[a] = list[a - 1] + i;
      a++;
    }
  }
  for (int i = 0; i < k; i++) {
    printf("%lld\n", list[i + 1]);
  }
  return 0;
}
