JOI-kun has years of experience of growing vegetables in his home vegetable garden. Now he is planning to manage IOI Farm.
IOI Farm consists of N lands, numbered from 1 to N. There are N−1 roads connecting with lands, numbered from 1 to N−1. The road i (1≤i≤N−1) connects the land A_i and the land B_i bidirectionally. It is possible to move from any land to any other land by passing through roads. There is a sprinkler in every land of IOI Farm. Using a sprinkler, we can spray water on surrounding lands.
JOI-kun is planning to grow JOI millets in IOI Farm. JOI millet is a curious plant. If we give water, the height of a JOI millet changes immediately. But, JOI millet is a weak plant. If the height of a JOI millet becomes larger than or equal to L, the top part of length L of the JOI millet is broken immediately. JOI-kun will harvest the broken parts of JOI millets.
In the beginning, JOI-kun plants a JOI millet of height H_j in the land j (1≤j≤N). After that, for Q days, JOI-kun will take care of the JOI millets everyday. On the k-th day (1≤k≤Q), JOI-kun takes one of the following actions.
Here, the distance from the land x (1≤x≤N) to the land y (1≤y≤N) is the minimum number of roads we have to pass through when we move from the land x to the land y.
JOI-kun wants to see that the JOI millets are grown up as planned. For this purpose, he wants to calculate the height of a JOI millet measured by each action of Type 2 in advance.
Write a program which, given information of IOI Farm and JOI-kun’s plan, calculates the height of a JOI millet measured by each action of Type 2 taken by JOI-kun.
Read the following data from the standard input. Given values are all integers.
\begin{align\*}& N\\,L \\\ & A\_1 \\, B\_1 \\\ & A\_2 \\, B\_2 \\\ & \vdots \\\ & A\_{N-1} \\, B\_{N-1} \\\ & H\_1 \\\ & H\_2 \\\ & \vdots \\\ & H\_N \\\ & Q \\\ & \text{(Query }1\text{)} \\\ & \text{(Query }2\text{)} \\\ & \vdots \\\ & \text{(Query }Q\text{)} \end{align\*}
Each (Query k) (1≤k≤Q) consists of space separated integers. Let T_k be the first integer of (Query k). The content of this line is one of the following.
For each action of Type 2 (i.e., for each k (1≤k≤Q) with T_k=2), write the height of a JOI millet in the land X_k measured by the action of Type 2 on the k-th day to the standard output, in this order. The outputs should be separated by line breaks.