#include <iostream>
#include<algorithm>
#include <vector>
#include<string>
#include<cmath>
#include<cstdio>

using namespace std;
long s(long);
int main() {
	int k;
	long b = 0, count = 0;
	cin >> k;
	while (1)
	{
		b++;
		if (b % 10 == 9) {
			cout << b << endl;
			count++;
		}
		else {
			if ((s(b)) < (s((b / 10) * 10 + 9))) {
				cout << b << endl;
				count++;
			}
		}
		if (count = > k) {
			break;
		}
	}
	return 0;
}
long s(long n) {
	int ans = 0;
	while (1)
	{
		ans += n % 10;
		if (n < 10) {
			break;
		}
		n /= 10;
	}
	return ans;
}