#include <bits/stdc++.h>

using namespace std;
typedef long long int ll;
typedef pair<int, int> ii;
#define DEBUG freopen("in.txt", "r", stdin);

struct fastio {
    fastio() {
        ios::sync_with_stdio(false);
        cout << setprecision(10) << fixed;
        cin.tie(0);
    }
};

fastio _fast_io;

ll k;

double f(ll x) {
    double y = 0;
    ll n = x;
    while (x) {
        y += x % 10;
        x /= 10;
    }
    return n / y;
}

int main() {
    cin >> k;
    ll now = 0;
    ll x = 1;
    ll tot = 0;
    while (tot<k) {
        if((now/x)%10!=9){
            now+=x;
            printf("%lld\n",now);tot++;
        }
        else{
            if(f(now+x)>f(now+10*x)){
                x=10*x;
            }
            now+=x;
            printf("%lld\n",now);tot++;
        }
    }

    return 0;
}
