The first line of the input gives the number of test case,(
).
test cases follow.
For each case, the first line contains only two integersand
(
,
).
The i-th line of the nextlines describes the i-th edge: two integers
,
denotes an edge between
and
. It's guaranteed that there are no self-loops and multiple edges.
For each test case, output one line containing "Case #x: y", where x is the test case number (starting from 1) and y is the maximum number of edges that can be painted to red.