Given a graph, determine how many ways you can color the graph with at most two colors. There cannot be an edge containing two vertices of the same color.
The first line of the input contains , the number of test cases. Each test case starts with a line containing two integers (1 \leq V \leq 30) and (0 \leq E \leq 1000). Each of the next lines contains two integers , (0 \leq a \leq V-1, 0 \leq b \leq V-1) denoting that there is a bidirectional edge between and . There will not be any self-loops or duplicate edges. The last line of the input will be blank.
For each test case, output the number of ways you can color the graph with only two colors. If you cannot color the graph with at most two colors, output .
Example 1