#C3385. Calculate Students' Average Marks

    ID: 46806 Type: Default 1000ms 256MiB

Calculate Students' Average Marks

Calculate Students' Average Marks

In this problem, you are given details of students along with their marks in three subjects. Your task is to compute the average mark for each student. The average is computed using the formula $$\text{average} = \text{round}\left(\frac{m_1+m_2+m_3}{3}\right)$$ where (m_1, m_2, m_3) are the marks in the three subjects. You should output each student's name along with their computed average mark. The input and output will be handled via standard input and output respectively.

inputFormat

The first line of input contains a single integer (N) ( (1 \leq N \leq 1000) ), representing the number of students. Each of the following (N) lines contains a student's data: a string (the student's name) followed by three integers representing the marks obtained in each subject. The marks are space-separated.

outputFormat

For each student, print a line containing the student's name and their average mark (rounded to the nearest integer), separated by a space. The order of output should match the order of input.## sample

3
Alice 90 80 85
Bob 85 90 80
Charlie 90 80 85
Alice 85

Bob 85 Charlie 85

</p>