There are multiple test cases. The first line of input contains an integer $T$, indicating the number of test cases. For each test case:
The first line contains two integers $n$ and $m$ $(2 \le n \le 500, 1 \le m \le \frac{n(n-1)}{2})$ -- the number of vertices and the number of edges. The second line contains a binary string of length $n$. The $i$-the vertex is colored white if the $i$-th character is "0", or black otherwise.
In the next $m$ lines, each contains two integers $x_i$ and $y_i$ $(1 \le x_i, y_i \le n, x_i \ne y_i)$, denoting an undirected edge.