#include <bits/stdc++.h>
int S(int num);
int main() {
  int i = 0;
  int countM;
  long long j, m;
  int K;
  int n;
  scanf("%lld", &K);
  if (K <= 9) {
    for (n = 1; n <= K; n++) {
      printf("%d\n", n);
      i++;
    }
  } else {
    for (n = 1; n <= 9; n++) {
      printf("%d\n", n);
      i++;
    }
  }
  for (j = 1;; j++) {
    int success = 1;
    for (countM = 1; countM < 100; countM++) {
      m = j + countM;
      if (m / S(m) <= j / S(j)) {
        success = 0;
      }
    }
    if (success == 1) {
      if (i < K) {
        i++;
        printf("%lld\n", j);
      } else {
        break;
      }
    }
  }
  return 0;
}
int S(int y) {
  int result = 0, x;
  while (y != 0) {
    x = y % 10;
    result += x;
    y = (int)(y / 10);
  }
  return result;
}
