k = int(input())

if k <= 9:
    for i in range(1, k+1):
        print(i)

elif k <= 18:
    for i in range(1, 10):
        print(i)
    for i in range(1, k-8):
        print(i*10+9)

else:
    for i in range(1, 10):
        print(i)
    for i in range(1, 10):
        print(10*i+9)

