#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <complex>
typedef long long int LL;
using namespace std;

// 插入此處

double s(LL n) {
    LL c = n;
    LL d = 0;
    while (c > 0) {
        d += (c % 10);
        c /= 10;
    }
    return d;
}

double snuke(LL n) {
    return double(n) / s(n);
}

int main() {
    // printf("%lf\n", pow(10LL, 15LL));
    int k;
    scanf("%d", &k);
    int count = 0;

    LL interval = 1;
    LL x = 1;
    while (count < k) {
        if (snuke(x) <= (double)interval) {
        // if (snuke(x) <= snuke(x + interval)) {
            printf("%lld\n", x);
            x += interval;
            count++;
        } else {
            x -= interval;
            interval *= 10;
            x += interval;
        }
    }
}
