~/algor $ cat problems/eng-tez-yuguruvchi
Fastest runner
Easy
1000 ms
64 MB
23%
$n$ athletes took part in a race; the time of athlete $i$ is $m_{i}$ minutes $s_{i}$ seconds. Find the number of the fastest athlete (with the smallest time) and their time. If several athletes share the best time, take the first one in the list.
Input
The first line contains a positive integer $n$.
Each of the next $n$ lines contains two integers: $m_{i}$ and $s_{i}$.
Output
Three integers separated by spaces: the number, minutes and seconds.
Note
$1 \le n \le 10^{4}$
$0 \le m_{i}, s_{i} \le 59$
Examples
Input #1
4 12 30 11 58 12 5 11 58
Output #1
2 11 58
Input #2
1 0 59
Output #2
1 0 59