def digit_sum(i):
	list_i = [int(x) for x in str(i)]
	return sum(list_i)

K = int(input())
Sn = []
for i in range(1, pow(10, 15) + 1):
	if i / digit_sum(i) <= (i + 1) / digit_sum(i + 1):
		Sn.append(i)
	if len(Sn) == K:
		break
for i in range(len(Sn)):
	print(Sn[i])