#include <bits/stdc++.h>
double wari(int x) {
  int S = 0;
  int j, n = x, m;
  while (n > 9) {
    m = n / 10;
    j = n - m * 10;
    S += j;
    n = m;
  }
  S += n;
  return (double)x / S;
}
int main(void) {
  int K;
  scanf("%d", &K);
  int i, c = 0, j, flag;
  for (i = 1; c < K; i++) {
    j = 1;
    flag = 0;
    int k = wari(i);
    while (j < i) {
      if (k > wari(j)) {
        flag = 1;
        break;
      }
      j++;
    }
    if (flag == 0) {
      printf("%d\n", i);
      c++;
    }
  }
  return 0;
}
