#include <iostream>

using namespace std;

int s(long long n) {
    int s = 0;
    while (n != 0) {
        s += n % 10;
        n /= 10;
    }
    return s;
}

double f(long long n) {
    return (double)n / s(n);
}

int main() {
    long long k;
    cin >> k;

    long long num = 1;
    long long base = 1;
    for (long long i = 1; i <= k; i++) {
        cout << num << endl;
        double next1 = f(num + base);
        double next2 = f(num + base * 10);
        if (next1 > next2) {
            base *= 10;
        }
        num += base;
    }

    return 0;
}