#include <bits/stdc++.h>
using namespace std;
long long digit(long long x, long long d) {
  if (x == 0) return 1;
  long long res = 0;
  for (; 0 < x;) {
    x /= d;
    res++;
  }
  return res;
}
long long s(long long x) {
  long long res = 0;
  for (; x != 0; x /= 10) {
    res += x % 10;
  }
  return res;
}
int main() {
  long long K;
  cin >> K;
  for (int i = (1); i < (min<long long>(10, K + 1)); ++i) {
    cout << i << endl;
  }
  K -= min<long long>(9, K);
  long long N = 10;
  double t = 1e18;
  for (int i = 0; i < (int)(K); i++) {
    long long d = digit(N, 10);
    long long res = i;
    for (int j = 0; j < (int)(d); j++) {
      long long x = N;
      long long p = pow(10, j + 1);
      x /= p;
      x += 1;
      x *= p;
      x -= 1;
      if ((double)x / s(x) < t) {
        res = x;
        t = (double)x / s(x);
      }
    }
    if (N < res) {
      cout << res << endl;
    }
  }
  return 0;
}
