#include <bits/stdc++.h>
int sunDigit(unsigned long long N) {
  unsigned long long SN = 0;
  while (N) {
    SN += N % 10;
    N /= 10;
  }
  return SN;
}
int main(void) {
  unsigned long long K;
  scanf("%d", &K);
  int 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);
    }
  }
  unsigned long long n = 10;
  for (i; i <= K; i++) {
    if (((n + 9) / sunDigit(n + 9)) <= ((n + 10) / sunDigit(n + 10))) {
      printf("%lld\n", n + 9);
    }
    n += 10;
  }
  return 0;
}
