#include<bits/stdc++.h>
using namespace std;

using ll = long long;
int a[20];
ll pw[20];

ll get_sum(ll n){
	ll ret = 0;
	while(n){
		ret += n % 10;
		n /= 10;
	}
	return ret;
}

int main(){
//	freopen("res.txt", "w", stdout);
	pw[0] = 1;
	for(int i = 1; i < 20; i ++) pw[i] = pw[i - 1] * 10;
	int k;
	cin >> k;
	ll cur = 1;
	for(int i = 0; i < k; i ++){
		ll tmp = cur;
		for(int j = 0; j < 16; j ++){
			a[j] = tmp % 10;
			tmp /= 10;
		}
		for(int j = 0; j < 16; j ++){
			if(a[j] == 9) continue;
			if((long double)(cur) / get_sum(cur) < (long double)(cur + pw[j] * 9) / get_sum(cur + pw[j] * 9)){
				break;
			}
			else {
				cur += (9 - a[j]) * pw[j];
			}
		}
		cout << cur << '\n';
		cur ++;
	}
}