/*
ID: jerrywcy
TASK: AtCoder ABC 101 Problem D
LINK: https://abc102.contest.atcoder.jp/tasks/abc102_d
LANG: C++
*/
#include <bits/stdc++.h>

using namespace std;

long long d=1;
int k;
 
int sum(long long x){
	if(!x) return 0;
	return x%10+sum(x/10);
}
 
long long f(long long n){
	if(sum(n+d*10)*(n+d)>(n+d*10)*sum(n+d)) d*=10;
	return n+d;
}
 
int main(){
	cin>>k;
	int i,j;
	int cur=1;
	long long n=1;
	for(i=0;i<k;i++){
		if(i!=0) n=f(n);
		cout<<n<<endl;
	}
}