PROGRAMMING:scholarship
####Description
A primary school has recently received a grant and plans to offer some scholarships to the top five students with excellent academic performance. At the end of the term, each student has three subjects: Chinese, mathematics and English. If two students have the same total score, they will be ranked from high to low. If two students have the same total score and Chinese score, the students with small student number will be ranked in the front. In this way, the ranking of each student is uniquely determined.
Task: first calculate the total score according to the scores of the three courses, then sort them according to the above rules, and finally output the student numbers and total scores of the top five students according to the ranking order. Note that each of the top five students has a different scholarship, so you must strictly follow the above rules.
####Input
Contains n + 1 lines:
The first line is a positive integer n, which indicates the number of students in the school.
Lines 2 to N + 1, each with three numbers separated by spaces, each between 0 and 100. The three numbers in line j indicate the grades of Chinese, mathematics and English of students with student number J-1 in turn. The student number of each student is numbered 1 ~ n according to the input sequence (exactly the line number of the input data minus 1).
All the data given are correct and need not be checked.
50% of the data meet: the total score of each student is different;
100% of the data meet: 6 < = n < = 300.
####Output
There are 5 lines in total, each line is two positive integers separated by spaces, which represent the student number and total score of the top 5 students in turn.
####Sample input
```in
six
90 67 80
87 66 91
78 89 91
88 99 77
67 89 64
78 89 98
```
####Sample output
```out
6 265
4 264
3 258
2 244
1 237
```
####Sample input
```in
eight
80 89 89
88 98 78
90 67 80
87 66 91
78 89 91
88 99 77
67 89 64
78 89 98
```
####Sample output
```out
8 265
2 264
6 264
1 258
5 258
```
####Source
http://noi.openjudge.cn/ch0110/04/
answer:If there is no answer, please comment
A primary school has recently received a grant and plans to offer some scholarships to the top five students with excellent academic performance. At the end of the term, each student has three subjects: Chinese, mathematics and English. If two students have the same total score, they will be ranked from high to low. If two students have the same total score and Chinese score, the students with small student number will be ranked in the front. In this way, the ranking of each student is uniquely determined.
Task: first calculate the total score according to the scores of the three courses, then sort them according to the above rules, and finally output the student numbers and total scores of the top five students according to the ranking order. Note that each of the top five students has a different scholarship, so you must strictly follow the above rules.
####Input
Contains n + 1 lines:
The first line is a positive integer n, which indicates the number of students in the school.
Lines 2 to N + 1, each with three numbers separated by spaces, each between 0 and 100. The three numbers in line j indicate the grades of Chinese, mathematics and English of students with student number J-1 in turn. The student number of each student is numbered 1 ~ n according to the input sequence (exactly the line number of the input data minus 1).
All the data given are correct and need not be checked.
50% of the data meet: the total score of each student is different;
100% of the data meet: 6 < = n < = 300.
####Output
There are 5 lines in total, each line is two positive integers separated by spaces, which represent the student number and total score of the top 5 students in turn.
####Sample input
```in
six
90 67 80
87 66 91
78 89 91
88 99 77
67 89 64
78 89 98
```
####Sample output
```out
6 265
4 264
3 258
2 244
1 237
```
####Sample input
```in
eight
80 89 89
88 98 78
90 67 80
87 66 91
78 89 91
88 99 77
67 89 64
78 89 98
```
####Sample output
```out
8 265
2 264
6 264
1 258
5 258
```
####Source
http://noi.openjudge.cn/ch0110/04/
answer:If there is no answer, please comment