K = int(input())
count = 0
n = 1
while count < K:
	n_ = str(n)
	if n < 10:
		n_ = "9"
	elif 9 < n < 100:
		n_ = n_[0] + "9"
	else:
		n_ = n_[0:-2] + "9"
	
	n = str(n)
	S_n = 0
	S_n_ = 0	
	for i in range(len(n_)):
		S_n_ += int(n_[i])
	
	for i in range(len(n)):
		S_n += int(n[i])
	
	n = int(n)
	n_ = int(n_)
	if (n_ / S_n_) >= (n / S_n):
		print(n)
		count += 1
	n += 1