#include <bits/stdc++.h>
using namespace std;
long long sumDigit(long long x) {
  long long ret = 0;
  while (true) {
    if (x == 0) return ret;
    ret = ret + (x % 10);
    x = x / 10;
  }
  return 0;
}
long long countten(long long x) {
  long long ret = 1;
  while (true) {
    x = x / 10;
    if (x == 0)
      return ret;
    else
      ret = ret * 10;
  }
}
int main() {
  long long K;
  cin >> K;
  for (long long i = 1; i <= 9; i++) {
    if (K < i) return 0;
    printf("%d\n", i);
  }
  K -= 9;
  long long now = 9;
  for (long long i = 1; i <= K; i++) {
    now += 10;
    long long comp, compdig, nowdig;
    nowdig = sumDigit(now);
    long long cten = countten(now);
    comp = ((now / cten) * cten) + (cten - 1);
    compdig = sumDigit(comp);
    if ((now * compdig) <= (comp * nowdig)) {
      printf("%lld\n", now);
    } else {
      i--;
    }
  }
}
