Thanksone likes to eat apple too much so he planted an ordinary apple tree.
We can view the ordinary apple tree as a tree with $N$ nodes and the root is $R$. Initially, there would be some apples on each of the nodes.
Then, during the following $M$ days, one of the two things might happen on the $i$-th day:
Finally, there will be $Q$ queries, for $i$-th query, please help Thanksone to track how many apples are there in the subtree of $x_i$.
The first line contains four integers $N$, $M$, $R$ and $Q$, representing $N$ nodes, $M$ days, the root $R$ and $Q$ queries.
Following are $N-1$ lines, each contains two integers $u_i$, $v_i$, representing a directed edge pointing from $u_i$ to $v_i$.
The following one line contains $N$ integers, representing the initial amount of apples on each nodes.
Next, the following $M$ lines, each contains three integers $o_i$, $k_i$, $x_i$.
Finally, the following $Q$ lines, each contains an integers $x_i$, representing the node which we want to know
Constraints
It is guaranteed that the number of operation 2 ($o_i = 2$) won't exceed 200.
It is guaranteed that the number of apples would be nonnegative.
Subtask
Output $Q$ lines, for $i$-th line, output the number of apples there are in the subtree of $x_i$.