#include <iostream>
#include <iomanip>
#include <cstdio>
#include <string>
#include <cstring>
#include <deque>
#include <list>
#include <queue>
#include <stack>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <regex>
#include <complex>
#include <cmath>
#include <limits>
#include <cfloat>
#include <climits>
#include <ctime>
#include <cassert>
#include <numeric>
#include <fstream>
#include <functional>
using namespace std;
typedef long long LL;

double s(LL n) {
	LL x = n;
	LL y = 0;
	while (x) {
		y += x % 10;
		x /= 10;
	}
	return (double)n / y;
}

int main() {
	LL K;
	LL n = 1;
	LL x = 1;

	cin >> K;

	for (int i = 0; i < K; i++) {
		cout << n << endl;

		if (s(n + x) > s(n + x * 10))x *= 10;

		n += x;
	}

	return 0;
}