#include <bits/stdc++.h>
using namespace std;
long long rk(long long k) {
  long long s = 1;
  for (long long i = 1; i <= k; i++) s *= 10;
  return s;
}
bool pan(long long k, long long fir, long long las, long long per) {
  long long r = k, s = 0, s1 = 0;
  while (r) s += r % 10, r /= 10;
  for (long long i = fir; i <= las; i += per) {
    r = i, s1 = 0;
    while (r) s1 += r % 10, r /= 10;
    if (i > k && s1 * k > s * i) return 0;
  }
  return 1;
}
int main() {
  long long k;
  cin >> k;
  for (long long i = 1; i <= 9; i++) cout << i << endl;
  for (long long i = 1; i <= 9; i++) cout << i << 9 << endl;
  k -= 18;
  for (long long i = 3; i <= 14; i++) {
    long long fir = rk(i - 1) * 2LL - 1LL - rk(i - 2) * 9LL;
    long long per = rk(i - 2), las = rk(i);
    for (long long j = fir; j < las; j += per) {
      if (k && pan(j, fir, las, per)) {
        printf("%lld\n", j);
        k--;
      }
    }
    if (!k) return 0;
  }
}
