Sorting time
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Sort the time according to the specified criteria.
Input
The first line contains the number . Then times are given. Each time is given as three integers — hours ( to ), minutes ( to ), and seconds (from to ).
Output
Print the times, sorted in nondecreasing order (time is also displayed in the form of three numbers, do not print the leading zeros).
Examples
Input #1
Answer #1
Submissions 18K
Acceptance rate 59%