#!/usr/bin/env python3
import sys
INF = float("inf")
from queue import Queue


def solve(K: int):
    q = Queue()
    for i in range(1, 10):
        q.put(str(i))

    for _ in range(K):
        c = q.get()
        print(c)
        q.put(c+"9")
    # for i in range(99, 300, 10):
    #     if not i % 10 == 9:
    #         continue
    #     s = str(i)
    #     S = sum([int(c) for c in s])
    #     print(i, i/S)

    return


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    K = int(next(tokens))  # type: int
    solve(K)


if __name__ == '__main__':
    main()
