In the first line there is an integer $T$, indicating the number of test cases.
For each test case:
The first line includes an integer $n$.
The second line includes $n$ integers $w[i]$, indicating the number written on the ith vertex.
For the next $n-1$ lines, each line includes two integers $u$ and $v$, which means an edge in the tree.
The next line includes an integer $m$, which means the number of our queries.
The next $m$ lines, each line includes an integer $u$, indicating Alice and Bob play game on the subtree rooted on the vertex $u$, and we want to know the result number.
$1 \leq n, m \leq 100000, 0 \leq w[i] \leq 100000$.