#K75342. Calculate Highest and Lowest Student Averages

    ID: 34398 Type: Default 1000ms 256MiB

Calculate Highest and Lowest Student Averages

Calculate Highest and Lowest Student Averages

You are given a set of student records. Each record contains a student's name followed by a series of integer scores. Your task is to compute the average score for each student and then output the highest average and the lowest average, separated by a space.

The average for each student is calculated using the formula:

$$\text{Average} = \frac{\text{Sum of scores}}{\text{Number of scores}}$$

Please note that the output should display two numbers with one decimal place: the first number is the highest average and the second is the lowest average.

inputFormat

The input is given via stdin. 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 format: "Name score1 score2 ... scoreM", where scores are integers.

outputFormat

Output a single line to stdout containing two floating-point numbers with one decimal place, representing the highest average score and the lowest average score, separated by a space.## sample

1
Alice 80 90 100
90.0 90.0