# -*- coding: utf-8 -*-

k_input = int(input())

ans_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]
num = '9'

while int(num) <= 10**20:
    for head in range(1, 10):
        ans_list.append(int(str(head) + num))
    num += '9'

for ans_index in range(k_input):
    print(ans_list[ans_index])
