# your code goes here
K = int(input())

for i in range(9):
	print(i+1)

ans_num = 9
i = 1
while ans_num < K:
	ans = 10*i+9
	ans_s = str(ans)
	flag = True
	for j in range(len(ans_s)-1):
		if ans_s[j] == '9':
			flag = False
			break
	if flag:
		print(ans)
		ans_num += 1
	i += 1