Sort the given moments of time in non-decreasing order.
The first line contains an integer (1 \leq n \leq 100). Each of the following lines contains three integers: hours (0 \leq h \leq 23), minutes (0 \leq m \leq 59), and seconds (0 \leq s \leq 59), representing a moment of time.
Print the moments of time in non-decreasing order. Each moment should be printed as three integers (hours, minutes, seconds), separated by spaces, without leading zeros.
Example 1