#include<bits/stdc++.h>
using namespace std;
int k,num;
long long ans=1,p=1;
long long f(long long  x)
{
	if(x==0) 
		return 0;
	else 
		return x%10+f(x/10);
}
int main(){
    cin>>k;
    while(num<k){
        cout<<ans<<endl;
        long long ans1=ans+p;
        long long ans2=ans+p*10;
        if( ans1*f(ans2) <= ans2*f(ans1) )
			ans=ans1;
        else
		{
			ans=ans2;
			p*=10;
		}
        num++;
    }
    return 0;
}