#include <cstdio>
using ll = long long;

ll ds(ll x) {
    ll ret = 0;
    while(x) {
        ret += x % 10;
        x /= 10;
    }
    return ret;
}

int main() {
    ll K; scanf("%lld", &K);

    ll num = 1, add = 1;
    for(ll i=0; i < K; ++i) {
        printf("%lld\n", num);
        while(double(num + add) / ds(num + add) > double(num + 2 * add) / ds(num + 2 * add)) add *= 10;
        num += add;
    }
    return 0;
}