#include<iostream>
#include<cstring>
#include<cstdio>
#include<cstring>
#include<vector>
#include<queue>
#include<algorithm>
#include<climits>
#include<bitset>
#define pii pair<int,int>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define int long long
using namespace std;
inline int read(){
    int f=1,ans=0;char c=getchar();
    while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
    while(c>='0'&&c<='9'){ans=ans*10+c-'0';c=getchar();}
    return f*ans;
}
double s(int x){
    int y=x,res=0;while(x){res+=(x%10);x/=10;}
    return (double)y/(double)res;
}
int N,bas=1;
signed main(){
    N=read();int now=0;
    while(N--){
        while(1){
            if(s(now+bas)>s(now+bas*10)) bas*=10;
            else break;
        }now+=bas;
        printf("%lld\n",now);
    }return 0;
}

