k = int(input())

for i in range(1, min(10, k)):
    print(i)
if k <= 9:
    exit()

j = 1
cnt = 9

while True:
    for i in range(2, 11):
        print((i * 10**j) - 1)
        cnt = cnt + 1
        if cnt >= k:
            exit()
    j = j + 1