#C9860. Average Student Scores

    ID: 54000 Type: Default 1000ms 256MiB

Average Student Scores

Average Student Scores

You are given information about several students. For each student, you will receive the student's id, name, and a list of scores. Your task is to compute the average score for each student, round it to two decimal places, and then print the students' records sorted in lexicographical order by their id.

The average score for a student is calculated using the formula: \[ \text{average} = \frac{\sum_{i=1}^{n} \text{score}_i}{n} \] where \(n\) is the number of scores.

Input is read from standard input (stdin) and output should be written to standard output (stdout).

inputFormat

The first line contains an integer \(N\) representing the number of students. Each of the following \(N\) lines contains a student's record in the following format:

id name count score1 score2 ... score_count

Here, id and name are strings (without spaces), count is an integer representing the number of scores, followed by that many integer scores.

outputFormat

Output the sorted student records (by the id in lexicographical order) with each record on a new line. For each student, print id, name, and the computed average_score (rounded to 2 decimal places) separated by a space.

## sample
1
s1 John 4 78 86 54 99
s1 John 79.25

</p>