
#include <iostream>
#include<vector>
#include<algorithm>
#include<map>
#include<queue>
using namespace std;
typedef long long ll;

const ll MOD_CONST = 1000000007;

ll digit10(ll num) {
	ll d = 0;
	while (num > 0) {
		d++;
		num /= 10;
	}
	return d;
}

ll s(ll x) {
	int sum = 0;
	while (x > 0) {
		sum += (x % 10);
		x /= 10;
	
	}
	return sum;
}

int main()
{
	ll k;
	cin >> k;

	
	ll num = 1;
	
	for (ll i = 0; i < k; i++) {
		cout << num << endl;
		num++;
		priority_queue<ll, vector<ll>, greater<ll>> pq;
		pq.push(num);
		ll d_max = digit10(num) + 1;
		ll p10 = 10;
		for (int i = 0; i <= d_max; i++) {
			
			pq.push((num / p10 + 1) * p10 - 1);
			p10 *= 10;
		}

		ll minX = pq.top();
		pq.pop();
		ll minS = s(minX);

		for (int i = 0; i < d_max; i++) {
			ll x1 = pq.top();
			ll s1 = s(x1);
			pq.pop();
			//cout << x1 << endl;
			if (x1 * minS < minX * s1) {
				minX = x1;
				minS = s1;
			}

		}
		

		num = minX;
		
		
	}
}  

