#include <bits/stdc++.h>
int S(int a) {
  int t, ans = 0;
  while (a) {
    t = a % 10;
    ans += t;
    a /= 10;
  }
  return ans;
}
int f(int N) {
  int d, i, x, ans;
  d = log10(N + 1);
  ans = N;
  for (i = 0; i < d; i++) {
    x = pow(10, i + 1) * (N / pow(10, i + 1) + 1) - 1;
    if ((double)x / S(x) < (double)ans / S(ans)) ans = x;
  }
  return ans;
}
int main(void) {
  int i, k, N;
  scanf("%d", &k);
  N = 1;
  printf("%d\n", N);
  for (i = 1; i < k; i++) {
    N = f(N + 1);
    printf("%d\n", N);
  }
}
