#P6408. Dinner for Five: Identify the Winner

    ID: 19623 Type: Default 1000ms 256MiB

Dinner for Five: Identify the Winner

Dinner for Five: Identify the Winner

In the popular competition Dinner for Five, there are \(5\) contestants and \(4\) judges. Each judge gives a score from \(1\) to \(5\) for every contestant. The total score for a contestant is the sum of the scores awarded by all judges. The contestants are numbered from \(1\) to \(5\) in the order they are evaluated.

Your task is to write a program that reads the scores for each contestant and outputs the number of the contestant with the highest total score, along with their score.

inputFormat

The input consists of exactly 5 lines. Each line contains 4 space-separated integers representing the scores given by the judges to a contestant. Each score is an integer between 1 and 5.

outputFormat

Output a single line containing two space-separated integers: the contestant's number (from 1 to 5) who obtained the highest total score, and the total score itself.

sample

4 4 4 4
3 3 3 3
5 5 5 5
2 2 2 2
1 1 1 1
3 20