#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
ll f(ll n) {
	string str = to_string(n);
	ll sum = 0;
	for (int i = 0; i < str.size(); i++) sum += str[i] - '0';
	for (int i = str.size() - 1; i >= 0; i--) {
		for (int j = str[i] - '0'; j <= 9; j++) {
			string t = str.substr(0, i + 1);
			t[i] = '0' + j;
			t += string(str.size() - i - 1, '9');
			ll m = 0;
			ll s = 0;
			for (int k = 0; k < t.size(); k++) {
				m *= 10;
				m += t[k] - '0';
				s += t[k] - '0';
			}
			if (m*sum < n*s) {
				n = m;
				sum = s;
			}
		}
	}
	return n;
}
 int main() {
	 int K;
	 cin >> K;
	 ll n = 1;
	 for (int i = 0; i < K; i++) {
		 cout << n << endl;
		 n = f(n + 1);
	 }
}