#include<bits/stdc++.h>
using namespace std;
long long s(long long n) {
	long long res = 0;
	while (n > 0)
	{
		res += n % 10;
		n /= 10;
	}
	return res;
}
double f(long long n) {
	return (double)(n) / s(n);
}
int main() {
	vector<long long> snuke;
	long long base = 1;
	for (int i = 0; i < 15; i++)
	{
		for (int j = 1; j < 150; j++)
		{
			snuke.push_back(base * (j+1) - 1);
		}
		base *= 10;
	}
	sort(snuke.begin(), snuke.end());
	snuke.erase(unique(snuke.begin(), snuke.end()), snuke.end());
	for (int i = 0; i < snuke.size(); i++)
	{
		for (int j = i+1; j < snuke.size(); j++)
		{
			if(f(snuke[i]) > f(snuke[j])) {
				snuke.erase(snuke.begin() + i--);
				break;
			}
		}
	}
	
	long long K; cin >> K;
	for (int i = 0; i < K; i++)
	{
		cout << snuke[i] << endl;
	}
	
	return 0;
}
