The first line contains the integer numbers , and .
The following lines describe the bus routes.
Each line contains the integer numbers , where and are the source and destination towns of the bus route , and describe the departure and arrival times as explained above ).