#include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
typedef long long int ll;
using namespace std;

ll S(ll n){
	ll cnt=0;
	while(n>0){
		cnt+=n%10;
		n/=10;
	}
	return cnt;
}
int main(){
	ll k; cin >>k;
	ll cnt=0;
	ll digit=1;
	for(ll i=0;i<k;i++){
		cnt+=digit;
		cout << cnt << endl;
		if((double)cnt/S(cnt)<(double)(cnt+digit)/S(cnt+digit)&&(double)(cnt+digit)/S(cnt+digit)>(double)(cnt+digit*2)/S(cnt+digit*2)){
			digit*=10;
		}
	}
	return 0;
}
