import sys 

K = int(input())

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

limit = 10 ** 15

for i in range(0, 16):
    for j in range(1, 10):
        if j < i-1:
            for k in range(min(10, K)):
                print(int(str(j) + str(k) + '9'*(i-1)))
            K -= k+1 
        else:
            print(str(j)+i*'9')
            K -= 1
        if K <= 0:
            break
    if K <= 0:
        break