module solution;
import std.algorithm;
import std.conv;
import std.stdio;
import std.typecons;

int sumDigits (long a)
{
	return a.text.map !(q{a - '0'}).sum;
}

bool cmp (long a, long b)
{
	return a * b.sumDigits < b * a.sumDigits;
}

void main ()
{
	int k;
	while (readf (" %s", &k) > 0)
	{
		long cur = 1;
		long add = 1;
		foreach (i; 0..k)
		{
			writeln (cur);
			if (cmp (cur + add * 10, cur + add))
			{
				add *= 10;
			}
			cur += add;
		}
	}
}
