#include <bits/stdc++.h>
using namespace std;
long long amax_num = 1000000000000000;
int s(long long n) {
  int s = 0;
  while (n != 0) {
    s += n % 10;
    n /= 10;
  }
  return s;
}
double f(long long n) { return n / s(n); }
int main() {
  int k;
  cin >> k;
  int num = 1;
  int base = 1;
  for (int i = 1; i <= k; i++) {
    cout << num << endl;
    double next1 = f(num + base);
    double next2 = f(num + base * 10);
    if (next1 > next2) {
      base *= 10;
    }
    num += base;
  }
  return 0;
}
