The first line contains a single integer $n$, denoting the number of alarms Faina has set ($1 \le n \le 20$).

The $i$-th of the following $n$ lines contains the time of the $i$-th alarm in the \t{h:mm} format ($7 \le \mathtt{h} \le 9$; $00 \le \mathtt{mm} \le 59$; if $\mathtt{h} = 9$, then $\mathtt{mm} = 00$). The alarms are given in strictly increasing order of time.
