def digit_sum(num):
	list_num = [int(x) for x in str(num)]
	return sum(list_num)

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