#include <bits/stdc++.h>
using namespace std;
int snuke(long long N) {
  int res = 0;
  if (N > 0) {
    res = N % 10 + snuke(N / 10);
  }
  return res;
}
int main() {
  int K;
  cin >> K;
  long long res = 1;
  for (int i = 0; i < K; i++) {
    if (res < 10) {
      cout << res++ << endl;
    } else {
      vector<long long> koho;
      long long temp = res;
      long long x = 10;
      for (int j = 0; j < 17; j++) {
        long long t = (temp / x) * x + x - 1;
        if (t <= 0) break;
        koho.push_back(t);
        x *= 10;
      }
      long long min = 1e+20;
      for (long long x : koho) {
        if (x * snuke(min) < min * snuke(x)) {
          min = x;
        }
      }
      res = min;
      cout << res << endl;
      res++;
    }
  }
}
