#include <bits/stdc++.h>
int s(int64_t x) {
  int result = 0;
  for (; x != 0; x /= 10) result += x % 10;
  return result;
}
double f(int64_t x) { return 1.0 * x / s(x); }
int main() {
  freopen("out2.txt", "w", stdout);
  int n;
  scanf("%d", &n);
  int64_t last = 1, high_bit = 1;
  for (int i = 0; i < n; i++) {
    printf("%lld\n", last);
    if (f(last + high_bit * 10) < f(last + high_bit)) high_bit *= 10;
    last += high_bit;
  }
  return 0;
}
