#include <iostream>
#include <cstdio>
using namespace std;

typedef long long ll;
ll k, a = 1;

ll f(ll p) {
	ll re = 0;
	while (p) {
		re += p % 10;
		p /= 10;
	}
	return re;
}

int main()
{
	ll i = 1, t;
	cin >> k;
	while (k--) {
		t = i + a;
        if (t * f(i) < i * f(t)) i -= a, a *= 10, i += a;
		printf("%lld\n", i);
		i += a;
	}
    return 0;
}