#include <bits/stdc++.h>
int main() {
  int K, SN = 0, N = 1;
  int i = 0, j, k, work;
  int ans[100000] = {};
  double ans_calc[100000] = {};
  ans_calc[0] = 100;
  double calc;
  scanf("%d", &K);
  while (i < K * 2) {
    SN = 0;
    work = N;
    for (k = 0; work != 0; k++) {
      SN += work % 10;
      work = work / 10;
    }
    calc = (double)N / (double)SN;
    if (calc < ans_calc[i]) {
      for (j = 0; j < i + 1; j++) {
        if (ans_calc[j] > calc) {
          ans[j] = N;
          ans_calc[j] = calc;
          i = j;
          break;
        }
      }
    } else if (calc == ans_calc[i]) {
      i++;
      ans[i] = N;
      ans_calc[i] = calc;
    } else {
      i++;
      ans_calc[i] = calc;
      ans[i] = N;
    }
    printf("N=%d %f i=%d k=%d\n", N, calc, i, k);
    if (N < 9) {
      N++;
    } else {
      N += 10;
    }
  }
  for (i = 0; i < K; i++) {
    printf("%d\n", ans[i]);
  }
  return 0;
}
