#include <iostream>
#define ll long long
#define ull unsigned long long
using namespace std;

ull s(ull arg) {
    ull ret = 0;
    while(arg > 0) {
        ret += arg % 10;
        arg /= 10;
    }
    return ret;
}

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

    ull base = 1;
    ull diff = 1;
    while(k > 0) {
        if(((double)base / s(base)) <= ((double)(base + diff) / s(base + diff))) {
            cout << base << endl;
            base += diff;
            k--;
        } 
        else {
            base -= diff;
            diff *= 10;
            base += diff;
        }
    }
}