Write a program that finds the latest (in the chronological ascending order) date-time pair from the given ones. At first, the number of the dates has to be specified, and then the program should read them, each in the year-month-dayThour:minute format.
Input data format
The first line contains an integer number N, indicating the total number of dates in the input. The following N lines consist of these date-time pairs.
Output data format
The program must output one date in the same format as the input (the latest one).