Загрузка данных
n = int(input()) books = [] for _ in range(n): book = input().strip() books.append(book) books.sort() for book in books: print(book)