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