#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, s = 8, t, k, k1, t1;
  scanf("%d", &n);
  for (i = 1; i <= 8; i++) printf("%d\n", i);
  for (i = 9; s < n; i++) {
    t = i;
    k = 0;
    while (t != 0) {
      k += t % 10;
      t /= 10;
    }
    t1 = i + 1;
    k1 = 0;
    while (t1 != 0) {
      k1 += t1 % 10;
      t1 /= 10;
    }
    if (i / k < (i + 1) / k1) {
      printf("%d\n", i);
      s++;
    }
  }
  return 0;
}
