#include <bits/stdc++.h>
int sunDigit(unsigned long long N) {
  unsigned long long SN = 0;
  while (N) {
    SN += N % 10;
    N /= 10;
  }
  return SN;
}
unsigned long long powInt(unsigned long long base, unsigned long long power) {
  int result = 1;
  while (power != 0) {
    result *= base;
    power--;
  }
  return result;
}
int main(void) {
  unsigned long long K;
  scanf("%d", &K);
  unsigned long long i;
  if (K < 10) {
    for (i = 1; i <= K; i++) {
      printf("%d\n", i);
    }
    return 0;
  } else {
    for (i = 1; i <= 9; i++) {
      printf("%d\n", i);
    }
  }
  i = 9;
  unsigned long n, m;
  do {
    i++;
    n = (unsigned long)(i / 10);
    m = (unsigned long)(i % 10) + 1;
    if (m == 1) {
      K++;
      continue;
    }
    printf("%d\n", (powInt(10, n) * m) - 1);
  } while (i < K);
  return 0;
}
