#include <bits/stdc++.h>
double get_sdiv(long long int n) {
  long long int sn = 0, nt = 1;
  for (int i = 0; i <= 16; i++) {
    sn += (n / nt) % 10;
    nt *= 10;
  }
  return (double)n / sn;
}
int main() {
  long long int k, i = 1, cnt = 0;
  scanf("%lld", &k);
  while (1) {
    long long int tmp = i, p = 1, s = get_sdiv(i), flag = 1;
    while (tmp) {
      tmp /= 10;
      p *= 10;
    }
    for (long long int j = i + 1; j < p; j++) {
      if (j % 10 != 9) {
        continue;
      }
      if (s > get_sdiv(j)) {
        flag = 0;
        break;
      }
    }
    if (flag == 1) {
      cnt++;
      printf("%lld\n", i);
      if (cnt >= k) {
        break;
      }
    }
    i++;
  }
  return 0;
}
