#include <bits/stdc++.h>
double fun(long long n) {
  int sum = 0;
  double m = n;
  while (n > 0) {
    sum += n % 10;
    n /= 10;
  }
  return m / sum;
}
int main() {
  long long k, i, j;
  long long count = 0;
  scanf("%lld", &k);
  for (i = 1;; i++) {
    if (fun(i + 1) >= fun(i)) {
      printf("%lld", i);
      count++;
      if (count < k) printf("\n");
    }
    if (count == k) break;
  }
  return 0;
}
