#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
#include <iostream>
typedef unsigned long long i64;
using namespace std;
map<i64, i64> m;
i64 dig = 10;
i64 next(i64 n) {
	if (n < 9) return n + 1;
	if (n < ((i64)9 * dig))
		n += dig;
	else {
		dig *= 10;
		n += dig;
	}
	return n;
}
void SnukeNumbers() {
	i64 K;
	cin >> K;
	i64 c = 0;
	i64 n = 1;

	while (c < K)
	{
		cout << n << "\n";
		n = next(n);
		c++;
	}
}