def S(n):
	a=0
	while(n>0):
		a+=n%10
		n=int(n/10)
	return a

K=int(input())

c=0
for i in range(1,(10**15)+1):
	if(c==K):
		break
	if i<10:
		print(i)
		c+=1
	elif i%10==9:
		if (i/S(i)) <= ((i+10)/S(i+10)):
			print(i)
			c+=1