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

using namespace std;

ll f(ll n) {
	ll res = 0;
	while (n > 0) {
		res += n % 10;
		n /= 10;
	}

	return res;
}

double g(ll n) {
	return (double) n / (double) f(n);
}

int main() {
	vector<ll> res;
	ll base = 1;

	for (int i = 0; i < 15; i++) {
		for (int j = 1; j < 150; j++) {
			res.push_back(base * (j + 1) - 1);
		}

		base *= 10;
	}

	sort(res.begin(), res.end());
	res.erase(unique(res.begin(), res.end()), res.end());

	for (ll i = 0; i < res.size(); i++) {
		for (ll j = i + 1; j < res.size(); j++) {
			if (g(res[i]) > g(res[j])) {
				res.erase(res.begin() + i);
				i--;
				break;
			}
		}
	}

	ll K;
	cin >> K;
	for (ll i = 0; i < K; i++) {
		cout << res[i] << endl;
	}

	return 0;
}
