In the first line, there is an integer $T$ indicating the number of test cases.
In each test case,the first line contains one integer $n$ refers to the number of nodes.
The next line contains $n-1$ integers $fa[1]\cdots fa[n-1]$,which describe the father of nodes $1\cdots n-1$(node $0$ is the root).It is guaranteed that $0\leq fa[i]< i$.
The next line contains $n$ integers $a[0]\cdots a[n-1]$,which describe the initial stones on each nodes.It is guaranteed that $0\leq a[i]<134217728$.
$1\leq T\leq 100$,$1\leq n\leq 100000$.
It is guaranteed that there is at most $7$ test cases such that $n>100$.