#include <bits/stdc++.h>
int s(int n) {
  int m = 0;
  for (int i = 0; n > 0; i++) {
    m += n % 10;
    n /= 10;
  }
  return m;
}
int main() {
  int n;
  scanf("%d", &n);
  long a[n];
  int m = 1;
  a[0] = 1;
  for (int i = 2; m <= n; i++) {
    int b = 1;
    for (int j = i + 1; j < i + 100; j++) {
      if (j / s(j) < i / s(i)) {
        b = 0;
        break;
      }
    }
    if (b == 1) {
      m++;
      a[m - 1] = i;
    }
  }
  for (int i = 0; i < n; i++) printf("%ld\n", a[i]);
}
