#include <bits/stdc++.h>
int main(void) {
  int k, i = 0;
  long int *p;
  scanf("%d", &k);
  p = (long int *)malloc(sizeof(long int) * (k + 1));
  if (p == NULL) {
    printf("確保失敗\n");
    return -1;
  }
  while (i < k) {
    i++;
    if (i < 10)
      *(p + i) = i;
    else
      *(p + i) = ((i + 1) % 10 + 1) * pow(10, (i + 1) / 10) - 1;
  }
  for (i = 1; i <= k; i++) printf("%ld\n", *(p + i));
  free(p);
  return 0;
}
