In case of uncovering the "fake sky" of Terra, Kristen has constructed a space station.
The space station can be represented as a tree consisting of $$$n$$$ nodes, numbered from $$$1$$$ to $$$n$$$. As the launching process of the space station kicked off, the energy of the station is increasing. Initially, there are $$$b_i$$$ units of energy at node $$$i$$$. At the start of each day, the energy at node $$$i$$$ will increase by $$$a_i$$$.
Pure water is essential for life. As a water elf, Muelsyse needs to transport pure water to each node in the space station.
You need to process $$$k$$$ operations, which are of two types:
It's guaranteed that $$$x$$$ is increasing among these operations. Formally, let $$$x_i$$$ be the value of $$$x$$$ in the $$$i$$$-th operation, then $$$x_i \lt x_{i+1}$$$ holds for all $$$1\leq i\leq k-1$$$.
The first line contains two integers $$$n$$$, $$$k$$$ ($$$1 \le n, k \le 10^5$$$), denoting the number of nodes in the space station and the number of operations.
The second line contains $$$n$$$ integers $$$a_1,a_2,\ldots,a_n$$$ ($$$0 \leq a_i \leq 1000$$$), where $$$a_i$$$ denotes the daily energy units increase of node $$$i$$$.
The third line contains $$$n$$$ integers $$$b_1,b_2,\ldots,b_n$$$ ($$$0 \leq b_i \leq 1000$$$), where $$$b_i$$$ denotes the initial energy units of node $$$i$$$.
The next $$$n - 1$$$ lines, each contains two integers $$$u$$$, $$$v$$$ ($$$1 \le u, v \le n, u \neq v$$$), denoting an edge in the tree.
Next $$$k$$$ lines contain descriptions of operations. The $$$i$$$-th operation has one of two types:
It's guaranteed that $$$x$$$ is increasing among these operations.
For each operation type $$$2$$$, output a single integer, denoting the minimum flowing shapes Muelsyse spends.
5 101 1 4 5 14 1 9 1 91 22 32 41 52 11 2 3 2 31 3 4 2 41 4 2 1 82 51 6 1 5 72 72 82 92 10
44 83 116 134 146 158
| Name |
|---|


