#include<bits/stdc++.h>
using namespace std;
double compute(long long a)
{
	long long temp = a, sum = 0;
	while(temp)
	{
		sum += temp % 10;
		temp /= 10;
	}
	double ans = (double) a / sum;
	return ans;
}
int main()
{
	int a;
	cin >> a;
	long long now = 1, toplus = 1;
	for(int i=1; i<=a; i++)
	{
		printf("%lld\n",now);
		double one = compute(now + toplus), two = compute(now + (toplus * 10));
		if(one > two) toplus *= 10;
		now += toplus;
	}
	return 0;
}