#include <iostream>
#include <string>
#include <vector>
#include <stdlib.h>
#include <cstdint>
using namespace std;

long long s(long long x)
{
    long long ret = 0;
    while (x > 0) {
        ret += x % 10;
        x /= 10;
    }
    return ret;
}

bool compare( long long x, long long y )
{
	return (double)x / s(x) < (double)y / s(y);
}

int main()
{
	long long k;

	cin >> k;

	long long d = 1, cur = 0;
	for( int i = 0; i < k; i++ ) {
		long long x = cur + d;
		long long y = cur + d * 10;
		if (compare(x, y)) {
            cur = x;
        }
		else {
            cur = y;
            d *= 10;
        }
        cout << cur << endl;
    }

	return 0;
}
