You are given a tree $$$T$$$ with $$$n$$$ vertices rooted at vertex $$$1$$$. The vertex $$$i$$$ initially has color $$$c_i$$$. Additionally, there are $$$q$$$ queries, each of which is either of the following 2 types:
The first line contains a single integer t $$$(1≤t≤2⋅10^5)$$$ — the number of test cases. The description of the test cases follows.
The first line of each test case contains two space separated integers $$$n$$$ $$$(1≤n≤2⋅10^5)$$$ and $$$q$$$ $$$(1≤q≤2⋅10^5)$$$.
The second line contains $$$n$$$ integers $$$c_1, c_2, ..., c_n$$$ $$$(1≤ c_i ≤n)$$$ — the initial colors of vertices.
The $$$i$$$-th of the next $$$n−1$$$ lines contains two integers $$$v_i$$$ and $$$u_i$$$ $$$(1≤ v_i,\,u_i ≤n;\, v_i≠u_i)$$$ — the $$$i$$$-th edge of the tree.
The $$$j$$$-th of the next $$$q$$$ lines contains three integers $$$type$$$, $$$v$$$ and $$$x$$$ $$$(1≤ type ≤2,\, 1≤ v ≤n,\, 1≤ x ≤n)$$$ — the $$$j$$$-th query.
It is guaranteed that the given edges form a valid tree. The sum of $$$n$$$ and sum of $$$q$$$ over all testcases do not exceed $$$2⋅10^5$$$. Also, there is atleast one $$$type\ 2$$$ query in each testcase.
For each query of $$$type\ 2$$$, print a single integer — the number of vertices which have color $$$x$$$ in the subtree of $$$v$$$.
28 83 4 2 3 4 1 7 21 21 34 22 53 83 76 82 1 31 2 31 6 32 1 32 2 32 3 21 7 22 3 24 61 1 1 11 22 33 42 1 11 1 12 1 11 3 22 1 32 2 2
2 4 2 2 3 4 4 0 1