#include "bits/stdc++.h"
using namespace std;


double Snuke(long long x) {
    long long tmp = 0, c = x;
    while(c) {
        tmp += c % 10;
        c /= 10;
    }
    return 1.0 * x / tmp;
}



int main() {
    int n;
    scanf("%d", &n);

    long long res = 0, x = 1;
    while(n--) {
        double t1, t2;
        while(true) {
            t1 = Snuke(res + x);
            t2 = Snuke(res + x * 10);
            if(t1 <= t2) break;
            x *= 10;
        }
        res += x;
        printf("%lld\n", res);
    }
}