k = int(input())
end = 0
nine = 0
while end == 0:
    for i in range(9):
        ans = [str(i + 1)]
        ans += "9" * nine
        print("".join(ans))
        k -= 1
        if k == 0:
            end = 1
            break
    nine += 1