#include <bits/stdc++.h>
int dx[4] = {1, 0, 0, -1};
int dy[4] = {0, 1, -1, 0};
using namespace std;
int digitsum(int n) {
  if (n == 0)
    return 0;
  else
    return n % 10 + digitsum(n / 10);
}
int main() {
  int k, i, now = 0;
  double res, min;
  unsigned long long int K;
  scanf("%d", &k);
  for (i = 1; i <= k; i++) {
    printf("%d\n", i);
    if (i == 9) break;
  }
  k -= 9;
  now = 9;
  for (i = 0; i < k;) {
    now++;
    if ((double)(now) / (double)(digitsum(now)) <=
        (double)(now + 1) / (double)(digitsum(now + 1))) {
      printf("%d\n", now);
      i++;
    }
  }
  return 0;
}
