The first line of input contains two integers: the x,y coordinates of the hangar (in metres). Up to 100 lines follow. Each gives the coordinates (in metres) of the beginning and end of a street. All roads are perfectly straight, with one lane in each direction. The plow can turn any direction (including a U-turn) at any intersection, and can turn around at the end of any street. The plow travels at 20 km/h if it is plowing, and 50 km/h if the lane it is driving on has already been plowed. It is possible to reach all streets from the hangar.
Your output should be the time, in hours and minutes, required to clear the streets and return to the hangar. Round to the nearest minute.
0 0 0 0 10000 10000 5000 -10000 5000 10000 5000 10000 10000 10000
3:55