# input
K = int(input())

count = 1
i = K // 9

for a in range(i + 1):
    for b in range(9):
        print(10 ** a + (10 ** a - 1) + (b * 10 ** a))
        count += 1
        if count > K:
            break
    if count > K:
        break
