#include <bits/stdc++.h>

#define loop(n, i) for(int i=0;i<n;i++)
#define HERE cout << "HERE: " << __LINE__ << endl;
#define INSP(v) cout << v << " at " << __LINE__ << endl;
using namespace std;
using ll = long long;
template <class T>
using vec = vector<T>;

ll s(ll v) {
    if (v < 10) return v;
    return (v % 10) + s(v / 10);
}

double sv(ll v) {
    return 1.0 * v / s(v);
}

ll next(ll crr) {
    // 9 rightmost 0-8 digit or plus 1
    ll base = 1;
    while (base <= crr) {
        int d = (crr / base) % 10;
        if (d < 9) {
            ll n = crr + (9 - d) * base;
            if (sv(crr) <= sv(n)) return crr;
            else return next(n);
        }
        base *= 10;
    }
    return crr;
}

int main() {
    ll l = 1;
    int k; cin >> k;
    loop (k, i) {
        cout << l << endl;
        l = next(l + 1);
    }
    return 0;
}