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

int main() {
	int K;
	cin >> K;
	for (int i = 1; i <= K; i++) {
		if (i < 10) cout << i << endl;
		else {
			int s = (i - 1) / 9;
			int t = i - s * 9;
			cout << (t + 1)*pow(10, s) - 1 << endl;
		}
	}

}