k = int(input())

if k <= 9:
    for i in range(k):
        print(i+1)
else :
    s = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
        
    nines = ''
    cnt = 0
    while cnt < k:
        for i in range(9):
            print(s[i]+nines)
            cnt += 1
            if cnt >= k:
                break
        nines += '9'