Problem

3 /11


Number of school students

Problem

The input to the program is information about the numbers of schools of students who participated in the Olympiad. The first line reports the number of students N, each of the following N lines has the format:
<LastName> <Initials> <school number>,
where <last name> – a string of no more than 20 characters, <Initials> – string consisting of 4 characters (letter, dot, letter, dot), <school number> – no more than a two-digit number. <Surname> and <Initials> as well as <Initials> and <school number> separated by one space. Input string example:
P.S. Ivanov 57
You want to write as efficient a program as possible that will display information from which school had the least number of participants (there may be several such schools). In this case, it is necessary to display information only for schools that sent at least one participant. If there are several such schools, then display the list in a column.
Note that \(N>=1000\).