#include <bits/stdc++.h>
int get_int(void) {
  int num;
  scanf("%d", &num);
  return num;
}
int main(void) {
  int num = get_int();
  int i;
  for (i = 1; i <= num; i++) {
    int val = i;
    int64_t sum = 0;
    int64_t power10 = 1;
    while (val >= 9) {
      val -= 9;
      sum += 9 * power10;
      power10 *= 10;
    }
    sum += power10 * val;
    printf("%lld\n", sum);
  }
  return 0;
}
