# ===================================
# (c) MidAndFeed aka ASilentVoice
# ===================================
# import math 
# import collections
# import string
# ===================================
def s(n):
	ans = 0
	for x in str(n):
		ans += int(x)
	return ans

k = int(input())
it = 0
for i in range(1, int(1e15)):
	if i < 10:
		print(i)
		it += 1
	else:
		if i%9 == 1 and i%10 != 0 and s(i) == 10:
			print(i)
			# print(i, i/s(i))
			it += 1
	if it == k:
		break

