Олимпиадный тренинг

Задача 18731. time sorting


Задача

Темы:
Time sort
 
The input file contains the number N first (1<=N<=100), and then
N times. Each point in time is given by 3 integers - 
hours (0 to 23), minutes (0 to 60), and seconds (0 to 60).
 
In the output file print the moments of time sorted in order
non-decreasing (time is also displayed as three numbers, leading zeros
output is optional)
 
Sample input file:
4
10 20 30
7 30 00
23 59 59
13 30 30
 
Sample output file:
7 30 0
10 20 30