import sys

K = int(input())

if K <= 0:
    sys.exit(0)

for i in range(1, 10):
    print(i)
    K -= 1
    if K == 0:
        break

for i in range(1, 16):
    for j in range(2, 11):
        if K == 0:
            break

        if i > 2 and j < i:
            for k in range(10):
                print(str(j-1) + str(k) + ''.join(['9' for l in range(i-1)]))
                K -= 1
                if K == 0:
                    break
        else:
            print((10 ** i) * j - 1)
            K -= 1
    if K == 0:
        break