K = int(input())
i = 1
lst = [1]
sz = 1

while i <= K:
    for j in range(sz-1, -1, -1):
        print(lst[j], end='')
    print()

    if lst[sz-1] == 9:
        lst.append(1)
        sz += 1
    else:
        lst[sz-1] += 1
    
    i += 1
