K = int(input())

end_flg = 0
for i in range(15):
    # 桁ごとに出力
    for j in range(1, 10):
#        print({end_flg: (10 ** i - 1) + j * 10 ** i})
        print((10 ** i - 1) + j * 10 ** i)
        end_flg += 1
        if end_flg == K:
            break
    if end_flg == K:
        break

if end_flg < K:
    print(10 ** 15)