#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep1(i, n) for(int i = 1; i <= (n); i++)
#define Would
#define you
#define please

double snukecalc(long long number) {
	long long karinum = number;
	long long S = 0;
	while (karinum) {
		S += karinum % 10;
		karinum /= 10;
	}
	return 1.0 * number / S;
}





int main() {
	
	int K;
	cin >> K;

	int kazu = 0;
	int sita9 = 0;
	long long uesuuji = 0;

	while(kazu < K) {
		uesuuji++;
		long long hontou = uesuuji * pow(10, sita9);
		rep(i, sita9) hontou += 9 * pow(10, i);

		long long tugi = hontou + pow(10, sita9);
		if (snukecalc(hontou) > snukecalc(tugi)) {
			sita9++;

			rep(i, sita9) hontou -= 9 * pow(10, i);
			if (hontou <= 0) uesuuji = 0;
			else uesuuji = hontou / pow(10, sita9);

			continue;
		}
		else {
			cout << hontou << endl;
			kazu++;
		}
	}
	Would you please return 0;

}