Valentine's Day has come, and Bob prepared the perfect gift for his girlfriend, Alice. The gift is a rooted tree of chocolates where each chocolate has a type. To make the day more interesting, he decided to play a game with his girlfriend using the gift. The game lasts for $$$q$$$ operations, where the operation is one of the following:
You have to help Alice answer the first type of operations.
The root of the tree is node $$$1$$$.
Tree: A connected acyclic undirected graph where there is only $$$1$$$ simple path between any $$$2$$$ pairs of nodes.
The first line contains $$$2$$$ integers $$$n$$$ and $$$q$$$ $$$(1\leq n,q \leq 2.10^{5})$$$
The second line contains $$$n$$$ integers $$$t_{i}$$$ $$$(1\leq t_{i} \leq 10^{6})$$$, the type of the chocolate in node $$$i$$$.
The next $$$n-1$$$ lines each contain $$$2$$$ integers $$$u$$$ and $$$v$$$ $$$(1\leq u,v \leq n)$$$, which means there is an edge between node $$$u$$$ and node $$$v$$$.
The next $$$q$$$ lines contain one of $$$2$$$ operations:
Print the answer for the operations of type 1 in separate lines.
9 91 2 3 4 5 6 7 8 91 22 33 44 52 62 76 84 91 5 9 21 5 9 41 5 9 51 5 9 61 5 7 61 5 7 31 5 7 82 3 61 5 7 6
0 1 1 0 0 1 0 1