The first line contains the number of vertices N. (2 ≤ N ≤ 100,000)
Each of the next N-1 lines contains the numbers u and v of the two vertices joined by edge i.
The next line contains the colors of vertices 1 through N in order. A color is 0 or 1, where 0 is black and 1 is white.
The next line contains the weights of vertices 1 through N in order.
The next line contains the number of queries M. (1 ≤ M ≤ 100,000)
Each of the next M lines contains one query.
Every weight is a natural number at most 109, and so is the w of a type 3 query.