K = int(input())
count = 0
n = 1

def S(x):
	return sum(map(int, list(x)))
	
while count < K:
	m = str(n)
	
	if n < 10:
		m = "9"
	elif 9 < n < 100:
		m = m[0] + "9"
	else:
		m = m[0:-1] + "9"
		
	m_ = S(m)
	n_ = S(str(n))
	m = int(m)
	
	if (m/m_) >= (n/n_):
		print(n)
		count += 1
	n +=1