#include <iostream>
#include <algorithm>

using namespace std;

typedef unsigned long long ull;
ull K;

double s(ull n) {
	ull x = n, y = 0;

	while (x > 0) {
		y += x % 10;
		x /= 10;
	}

	return (double)n / y;
}

int main() {
	cin >> K;
	ull n = 1;
	ull x = 1;

	for (ull i = 0; i < K; i++) {
		cout << n << endl;

		if (s(n + x) > s(n + x * 10)) x *= 10;

		n += x;
	}

	return 0;

}