Vasya has a home library with books, and he wants to organize them based on the number of characters in each book's text. Your task is to assist him with this sorting challenge.
The first line contains an integer (1 \leq n \leq 1000), representing the number of books in the library. The following lines provide the details of each book. For the -th book, the first line contains m_i, the number of lines in the book's text. The subsequent m_i lines contain the text of the book. Each book's text has a maximum of characters and lines.
The lines consist of characters with ASCII codes ranging from \mathrm{ord}(' ') to \mathrm{ord}('z').
Output the texts of the books sorted by the total number of characters, with each book's text separated by a line containing ""*. If two books have the same number of characters, they should remain in the order they appeared in the input.
Example 1