#include <bits/stdc++.h>
int get_int(void) {
  int num;
  scanf("%d", &num);
  return num;
}
int calc_digit(int64_t val) {
  int ans = 0;
  while (val) {
    ans += (val % 10);
    val /= 10;
  }
  return ans;
}
int main(void) {
  int num = get_int();
  int i;
  int64_t j;
  int64_t prev = 0;
  int64_t ans[1000000];
  int aidx = 0;
  for (i = 1; i <= num; i++) {
    int val = i;
    int64_t cur = 0;
    int64_t power10 = 1;
    while (val >= 9) {
      val -= 9;
      cur += 9 * power10;
      power10 *= 10;
    }
    cur += power10 * val;
    int64_t fixed_cur = (cur * (i - 1) - 1) / i + 1;
    for (j = 1; j <= cur; j *= 10) {
      int64_t val = cur - j;
      if (val >= fixed_cur) continue;
      if (val <= prev) break;
      ans[aidx++] = val;
    }
    ans[aidx++] = cur;
    prev = cur;
  }
  for (i = 0; i < aidx; i++) {
    printf("%lld\n", ans[i]);
  }
  return 0;
}
