K = int(input())
if K < 10:
    print(*list(range(1, K + 1)), sep='\n')
    exit()
prev = list(range(1, 10))
ans = prev[:]
while len(ans) < K:
    cur = []
    for n in prev:
        cur.append(10 * n + 9)
    ans += cur
    prev = cur
print(*ans[:K], sep='\n')
