Back
Close
  • 818

Statement

The program:
Your program must judge results of marathon runners and choose the best one.

The result of each runner is represented as HH:MM:SS, where HH is hours, MM is minutes and SS is seconds.

You are given N results and the smallest time is the best.

INPUT:
Line 1: a integer number N.
Next N lines: 8 characters, a time result.

OUTPUT:
The best result.

CONSTRAINTS:
0 < N ≤ 10
0 ≤ hours < 24
0 ≤ minutes < 60
0 ≤ seconds < 60

EXAMPLE:
Input
4
10:15:46
03:59:08
04:00:08
03:59:09
Output
03:59:08
 

A higher resolution is required to access the IDE