Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

EICREDI2 - GPA

Give a list of students and their grades. For each student, calculate the average cumulative score. Please note that student need to get at least 50 points to pass a course.

Input

+ Number of students inthe list N (1 <= N <= 10^5)

+ Each student include:

- Student's name (a string of up to 20 characters, containing no spaces)

- The number of course student's finished (0 <= C <= 100)

- The scores for all courses (0 <= ci <= 100)

Output

For each student, print out the student's name, the courses which student passed in the order they were entered, and the average cumulative score (taken whole number). If no subject meets the requirements, output 0 after the name.

Example

Input:
3
An 3 20 50 70
Binh 5 70 10 30 20 80
Cuong 1 100

Output:
An 50 70 60
Binh 70 80 75
Cuong 100 100

 


Added by:Ha Minh Ngoc
Date:2015-12-03
Time limit:1s-2s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG FSHARP GO JAVA JS-MONKEY NODEJS PHP PYTHON PYPY PYPY3 PYTHON3 RUBY SQLITE SWIFT VB.NET
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.