We say an undirected graph is a planar graph, if it exists a way to draw it on a planar, such that no two edges have intersection
except the endpoint. For example, the graph below is a planar graph:
But this graph below is
not a planar graph, since it can be proved that no matter how to draw this graph on a planar, at least two edges have intersection which is not an endpoint:
For a planar graph, it has some areas separated by edges. For example, the planar graph below has $4$ areas (Note that the area $1$ is the infinite planar outside):
Give you a planar graph with $n$ vertices and $m$ edges. Each area sets a country. You are the designer and you want to build some tunnels on the edges such that: From one city, you can travel to any other city by going through some tunnels or passing some cities(i.e. you can't cross one edge unless it sets a tunnel). For example, for the graph above, you can build tunnels like this:
In the picture above, you can travel from city $2$ to city $3$ by going through tunnel $1$, passing the city $1$, then going through tunnel $3$, passing the city $4$, finally going through tunnel $2$, and you can arrive to city $3$. You can check that from any city you can travel to any other city.
You want the number of tunnels as small as possible. Print the minimum number of tunnels and the ID of edges you build tunnel on.