#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
typedef long long ll;


long double calc_s(ll m){
	long double ans(0);
	while(m >= 1){
		ans += m%10;
		m /= 10;
	}
	return ans;
}

int main(){
	ll k;
	cin >> k;
	ll ans(1), d(1);
	rep(i,k){
		cout << ans << endl;
		while ((ans + d - 1) / calc_s(ans + d) >= d) {
			d *= 10;
		}
		ans += d;
	}
	return 0;
}