The first line contains one integer, denoting the size of the tree.
Followinglines each contains two integers
, denoting an edge in the tree.
It's guaranteed that the given graph forms a tree.
The first line contains one integer, denoting the minimum number of chains to cover all edges.
Followinglines each contains two integers
, denoting a chain you have chosen. Here
is permitted, which covers no edge.