#include <iostream>

using namespace std;

long long s(long long n) {
    long long ans = 0;

    while (n) {
        ans += n % 10;
        n /= 10;
    }

    return ans;
}

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

    long long n = 1, d = 1;
    cout << 1 << endl;

    for (int i = 1; i < k; i++) {
        if (s(n+d) * (n+d*10) < s(n+d*10) * (n+d)) {
            d *= 10;
        }
        n += d;
        cout << n << endl;
    }
}
