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

double fun(ll i) {
	ll ii = i;
	ll ans = 0;
	while(i) {
		ans += i % 10;
		i /= 10;
	}
	return double(ii) / ans;
}

int main() 
{
	int n;
	cin >> n;
	ll k = 0, kk = 1;
	for(int i = 0; i < n; i++) {
		if( (k / kk) % 10 == 9 && fun(k + kk) > fun(k + 10*kk) ) kk *= 10;
		k += kk;
		cout << k << endl;
	}
}