EasyRating 1000
Sort the Dates
Sort dates given as DD-MM-YYYY from oldest to newest.
Input
n, then n dates.
Output
n lines.
Sample 1
Input
3 28-10-2026 01-01-2000 15-06-2026
Output
01-01-2000 15-06-2026 28-10-2026
Sample 2
Input
1 31-12-1999
Output
31-12-1999
Output appears here