#include <bits/stdc++.h>
using namespace std;
int main() {
  auto calc = [](int n) {
    int cnt = 0;
    int tmp = n;
    while (tmp > 0) {
      cnt += tmp % 10;
      tmp /= 10;
    }
    return static_cast<double>(n) / cnt;
  };
  int K;
  cin >> K;
  int count = 0;
  for (int i = 1; i < 10 && i <= K; ++i) {
    ++count;
    cout << i << endl;
  }
  long long c = 9;
  long long a = 1;
  long long b = 10;
  while (count < K) {
    long long n1 = a * b + c;
    long long n2 = (a + 1) * b + c;
    if (calc(n1) <= calc(n2)) {
      cout << n1 << endl;
      ++a;
      ++count;
    } else {
      c = c * 10 + c;
      a = 1;
      b *= 10;
    }
  }
  return 0;
}
