#include <bits/stdc++.h>

#define rep(i, n) for(int i = 0; i<(n); i++)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
using namespace std;
typedef long long ll;

const int MOD = 1000000007;

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

double g(ll n) {
    return double(n) / f(n);
}

int main() {
    vector<ll> res;
    ll base = 1;
    rep(i, 15) {
        for (int j = 1; j < 150; j++) {
            res.push_back(base * (j + 1) - 1);
        }
        base *= 10;
    }

    sort(res.begin(), res.end());
    res.erase(unique(res.begin(), res.end()), res.end());

    for (ll i = 0; i < res.size(); ++i) {
        for (ll j = i + 1; j < res.size(); ++j) {
            if (g(res[i]) > g(res[j])) {
                res.erase(res.begin() + i--);
                break;
            }
        }
    }

    ll K;
    cin >> K;
    for (ll i = 0; i < K; ++i) {
        cout << res[i] << endl;
    }
}