#P5740. The Top Student

    ID: 18968 Type: Default 1000ms 256MiB

The Top Student

The Top Student

Given (N) students who participated in the final exam, each student is described by a name (a lowercase string of at most 8 characters) and the scores in Chinese, Math, and English (each an integer not exceeding 150). The top student is the one with the highest total score. In case of a tie, the student who appears first in the input should be chosen.

Output the top student's information including their name and three scores.

inputFormat

The first line contains an integer (N) ((1 \leq N \leq 10000)), representing the number of students. Each of the following (N) lines contains a student's details: a string (name) and three integers (scores in Chinese, Math, and English) separated by spaces.

outputFormat

Print the information of the top student in one line: the student's name, the Chinese score, the Math score, and the English score, separated by spaces.

sample

3
alice 90 80 70
bob 85 90 95
cathy 90 80 70
bob 85 90 95

</p>