There are people, each with a known first name, last name, and year of birth. Sort them first by last name in lexicographical order, then by first name. If there are several people with the same last name and first name, arrange them in descending order of their birth year.
The first line contains the number of people n~(1 \le n \le 100). Each of the following lines contains a person's first name, last name, and age. The first name and last name do not exceed 20 characters.
Print the information about the people according to the sorting criteria.
Example 1