def main():
    k = int(input())
    gen = generate()
    for _ in range(k):
        print(next(gen))

def generate():
    i = 0
    while True:
        s = "9" * i
        for j in range(1, 10):
            yield str(j) + s
        i += 1

if __name__ == "__main__":
    main()