K = int(input())
count = 0
for i in range(K):
	count = count + 1
	if i<9:
		print(i+1)
	else:
		n = int(i/9)
		r = (i%9)+1
		if r <= n-2:
			out = (r+1)*(10**n)-1-10**(n-1)
			print(out)
			count = count + 1
			if count == K:
				break
		out = (r+1)*(10**n)-1
		print(out)
	if count == K:
		break