Pheonix has arrived in outer space. There are $$$n$$$ galaxies, numbered $$$1$$$, $$$2$$$, $$$\ldots$$$, $$$n$$$. These galaxies are connected by $$$n - 1$$$ bidirectional wormhole channels, and any galaxy can be reached from any other galaxy via these wormholes.
Each galaxy contains some stars, and the number of stars in the $$$i$$$-th galaxy is $$$s_i$$$.
Pheonix will make $$$q$$$ wormhole trips between galaxies. During a single trip, Pheonix will not visit any galaxy more than once.
Pheonix has limited knowledge of astronomy, but his mathematical observation skills are keen. For each trip, he wants to ask Little T the following questions:
Please help Little T answer these questions.
The first line contains a single integer $$$T$$$ ($$$ 1 \le T \le 10^5$$$), representing the number of test cases.
The first line of each test case contains two integers $$$n$$$ and $$$q$$$ ($$$2 \le n \le 10^5, 1 \le q \le 10^5$$$), representing the number of galaxies and the number of trips Pheonix makes.
The next line contains $$$n$$$ integers $$$s_1$$$, $$$s_2$$$, $$$\ldots$$$, $$$s_n$$$ ($$$1 \le s_i \le n$$$), representing the number of stars each galaxy has respectively.
Each of the following $$$n - 1$$$ lines contains two integers $$$u$$$ and $$$v$$$ ($$$1 \le u, v \le n, u \ne v$$$), representing a wormhole channel connecting $$$u$$$ and $$$v$$$.
Each of the next $$$q$$$ lines contains $$$3$$$ integers $$$x$$$, $$$y$$$, and $$$k$$$ ($$$1 \le x, y \le n, 2 \le k \le n, x \ne y$$$), representing the starting and ending galaxies of a trip, and the query parameter.
It is guaranteed that $$$\sum n, \sum q, \sum k \le 3 \times 10^5$$$ over all test cases. It is also guaranteed that the wormhole channels in each test case allow reaching any galaxy from any other galaxy.
For each test case, output $$$q$$$ lines. The $$$i$$$-th line should contain the answer to the $$$i$$$-th query:
26 41 2 2 1 2 31 22 32 44 55 63 6 21 4 31 6 21 5 37 51 2 1 3 2 2 41 21 32 42 53 66 74 5 24 7 35 6 43 1 27 5 2
2 1 -1 1 2 2 -1 1 2 1 -1

The figure above shows the wormhole connections and the number of stars for the 1st test case.
The 1st query asks about the path from galaxy $$$3$$$ to galaxy $$$6$$$, with the parameter $$$2$$$. The visited galaxies are $$$3 \rightarrow 2 \rightarrow 4 \rightarrow 5 \rightarrow 6$$$, and the numbers of stars are $$$S = \{2, 2, 1, 2, 3\}$$$. The star number that satisfies having a frequency strictly greater than the threshold $$$\frac{|S|}{k} = 2.5$$$ is $$$2$$$.