#include <bits/stdc++.h>
using namespace std;
double s(long long int n) {
  int c = n;
  int d = 0;
  while (c > 0) {
    d += (c % 10);
    c /= 10;
  }
  return d;
}
double snuke(long long int n) { return double(n) / s(n); }
int main() {
  int k;
  scanf("%d", &k);
  int count = 0;
  long long int interval = 1;
  long long int x = 1;
  while (count < k) {
    if (snuke(x) <= interval) {
      printf("%lld\n", x);
      x += interval;
      count++;
    } else {
      x -= interval;
      interval *= 10;
      x += interval;
    }
  }
}
