k = int(input())
suffix = 0
while k > 0:
    for i in range(1, 10):
        if k > 0:
            print(str(i)+("9"*suffix))
            k -= 1
    suffix += 1

"""
m = 0
for i in range(1,1000):
    j = i / sum(int(x) for x in str(i))
    m = max(j, m)
    print(i, "%-3.3f"%j, m,sep="\t")

    # 19 = 1.9
    # 29 = 2.636
    # 199=10.474
"""
