K = int(input())
f = 0
num = 1
while f < K:
	keta = len(str(num))
	if keta == 1:
		print(num)
		f += 1
	elif keta == 2:
		if num % 10 == 9:
			print(num)
			f += 1
	else:
		if num == 10 ** (keta-1):
			nine = ''
		for _ in range(keta-1):
			nine += '9'
		if num % 10 ** (keta-1) == int(nine):
			print(num)
			f += 1 
	num += 1