#include<bits/stdc++.h>

#define ll long long
#define fornum(A,B,C) for(A=B;A<C;++A)
#define pii pair<int,int>
#define pll pair<ll,ll>

using namespace std;

/////////////////////////////////////////////////////

ll K;
ll i, j, k;
ll ansCnt;
ll S(ll a){
    ll ret = 0;
    while(a>0){
        ret += a % 10;
        a /= 10;
    }
    return ret;
}
void dfs(ll a,ll ii){
    if(ii==0){
        if(a>0){
            printf("%lld\n", a);
            ++ansCnt;
            if(K==ansCnt){
                exit(0);
            }
        }
        return;
    }
    ll i;
    ll aa = a + ii - 1;
    ll bb = a + ii * 9 + ii - 1;
    if(aa*S(bb)>bb*S(aa)){
        
        printf("%lld\n", bb);
        ++ansCnt;
        if(K==ansCnt){
            exit(0);
        }
        return;
    }

    fornum(i,0,10){
        dfs(a + ii * i, ii / 10);
    }
}

int main(){
    scanf("%lld", &K);
    dfs(0, 1e15);

    


    return 0;
}