Input contains multiple tests
The first line contains one integer $T(T \leq 4)$, indicating the number of test cases.
The following lines describe all the test cases
For each test case: The first line contains an integer $n(n \leq 100000)$, indicating the size of the magic tree.
The second line has $n - 1$ numbers, and the ith number represents the father of the node $i+1$.
The third row has $n$ numbers, and the $\text{ith}$ number represents the initial mana $a_{i}(a_{i} \leq n)$ value of each node.
In the fourth line, a number $m(m \leq 100000)$ represents the number of operations.
The next $m$ lines, one operation per line.
First a number $\text{op}(1 \leq \text{op} \leq 2)$ represents the type of operation.
If $\text{op} = = 1$, a number $x$ will be read immediately, indicating that a magic stone is thrown to the node $x$.
If $\text{op} = = 2$, it will immediately read in two numbers $x$ and $\text{new_a}$, indicating that the magic value of node $x$ is modified to $\text{new_a}(\text{new_a} \leq n)$.