#include<bit/stdc++.h>
using namespace std;
typedef long long ll;
ll n;
double f(ll x){
	ll sum=0,xx=x;
	while(xx){
		sum+=xx%10;
		xx/=10;
	}
	return x*1.0/sum;
}
int main(){
	cin >> n;
	num=1;
	base=1;
	for(int i=1;i<=n;i++){
		cout << num << endl;
		double ii=S(num+base);
		double jj=S(num+base*10);
		if(ii>jj)
            base*=10;
		num+=base;
	}
	return 0;
}