#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
const int maxdig = 16;
int sum(long long x) {
	int ret = 0;
	while (x > 0) {
		ret += x % 10;
		x /= 10;
	}
	return ret;
}
int main() {
	int n;
	cin >> n;
	long long cur = 1;
	for (int i = 0; i < n; ++i) {
		cout << cur << '\n';
		string s = to_string(cur);
		s = string(maxdig - s.size(), '0') + s;
		vector<long long> vl;
		for (int j = maxdig - 1; j >= 0; --j) {
			while (s[j] < '9') {
				++s[j];
				for (int k = maxdig - 1; k > j; --k) {
					s[k] = '0';
				}
				vl.push_back(stoll(s));
				for (int k = maxdig - 1; k > j; --k) {
					while (s[k] < '9') {
						++s[k];
						vl.push_back(stoll(s));
					}
				}
			}
		}
		cur = *min_element(vl.begin(), vl.end(), [](long long x, long long y) { return x * sum(y) < y * sum(x); });
	}
	return 0;
}