By Kay Akashi
In lines, you are given dates in yyyy/mm/dd format. Output the earliest date amongst those.
.
The first line of input contains one integer, . Following are lines each of which contains a date in yyyy/mm/dd format.
Output the answer.
3
2010/05/11
1979/05/04
2019/07/04
1979/05/04
The earliest date amongst 3 dates when David Cameron (2010/05/11), Margaret Thatcher (1979/05/04), and Boris Johnson (2019/07/04) became a Prime Minister in the British Parliament, is clearly of Margaret Thatcher.
2
1413/08/28
1413/08/28
1413/08/28
The testcase can contain duplicate dates, in this case, date of establishment of the University of St Andrews. In this case, output any.