def keta(num):
	nums = []
	while(num != 0):
		nums.append(num%10)
		num//=10
	return sum(nums)

K = int(input())
count = 0
i = 1
while(True):
	if(i/keta(i) <= (i+1)/keta(i+1)):
		print(i)
		count += 1
	if(count == K):
		break
	i += 1
