K=input()


def judge(n):
	S=list(str(n))
	a=sum(map(int,S))
	if a%10==0:
		return True
	else:
		return False

cnt=0
for i in range(1,10**3):
	if i<=9:
		print i
		cnt+=1
	else:
		if judge(i):
			print i
			cnt+=1
	if cnt==K:
		quit()