K = int(input())

def sunuke(n):
	return sum([int(k) for k in str(n)])

f = 0
num = 2
prev = 1
if K != 0:
	while f < K:
		k = sunuke(num) / num
		if k <= prev:
			print(num-1)
			f += 1
		prev = k
		num += 1
