~/algor $ cat problems/golib-raqami
Winner's number
Easy
1000 ms
64 MB
23%
In an olympiad, $n$ students took part in two rounds: student $i$ scored $a_{i}$ points in the first round and $b_{i}$ in the second. The winner is the student with the largest total over the two rounds; if there are several, the first one in the list. Find the winner's number and score.
Input
The first line contains a positive integer $n$.
Each of the next $n$ lines contains two integers: $a_{i}$ and $b_{i}$.
Output
Two integers separated by a space: the winner's number and score.
Note
$1 \le n \le 10^{4}$
$0 \le a_{i}, b_{i} \le 100$
Examples
Input #1
4 70 80 90 75 85 80 60 95
Output #1
2 165
Input #2
3 50 50 100 0 0 100
Output #2
1 100