#include <iostream>
using namespace std;
using ll = long long;

ll d(ll n) {
  ll res = 0;
  while (n) {
    res += 1;
    n /= 10;
  }
  return res;
}

ll s(ll n) {
  ll res = 0;
  while (n) {
    res += n % 10;
    n /= 10;
  }
  return res;
}

ll f(ll n) {
  ll x = 1;
  for (int i = 0; i <= d(n); i++) {
    int y = 0;
    while (y < 9 - n / x % 10) {
      if (n * s(n + x) <= (n + x) * s(n)) break;
      y++;
    }
    n += x * y;
    x *= 10;
  }
  return n;
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  int K;
  cin >> K;

  ll n = 0;
  while (K--) {
    n = f(n + 1);
    cout << n << "\n";
  }
}