K = int(input())
result_list = []
for i in range(1,K+1):
    result = 0
    a = i // 9
    b = i % 9
    for j in range(0,a):
        result += 9 * (10 ** j)
    result += b * (10 ** a)
    result_list.append(result)
for i in result_list:
    print (i)