In Ancient Berland, there were $$$N$$$ towns, along with $$$M$$$ bidirectional roads connecting them. With time, some roads became unusable, and nobody repaired them.
As a person who is fond of Ancient Berland history, you now want to undertake a small research study. For this purpose, you want to write a program capable of processing the following kinds of queries:
Let's call a subset of towns a region if it is possible to get from each town in the subset to every other town in the subset by the usable roads, either directly or indirectly. The population of the region is the sum of populations of all the towns in the region.
You are given the initial road system, the initial population in each town and $$$Q$$$ queries, each being one of two types above. Your task is to report the size of the most populated region after each query.
The first line of each test case contains three space-separated integers $$$N$$$, $$$M$$$, and $$$Q$$$ ($$$1 \le N, Q \le 500,000$$$, $$$0 \le M \le 500,000$$$), denoting the number of cities, the number of roads, and the number of queries, respectively.
The following line contains $$$N$$$ space-separated integers $$$P_1, \ldots, P_N$$$ ($$$1 \le P_i \le 100,000$$$), where $$$P_i$$$ denotes the initial population of the $$$i$$$th city.
The $$$j$$$th of the following $$$M$$$ lines contains a pair of space-separated integers $$$X_j$$$ and $$$Y_j$$$ ($$$1 \le X_j \lt Y_j \le N$$$), denoting that there is a bidirectional road connecting the cities numbered $$$X_j$$$ and $$$Y_j$$$. The roads are unique, that is, no two roads connect the same pair of towns.
Each of the following $$$Q$$$ lines describes a query in one of the forms described earlier. No road becomes unusable twice, and no town's population ever exceeds $$$100,000$$$.
Output $$$Q$$$ lines. On the $$$i$$$th line, output the size of the most populated region after the first $$$i$$$ queries.
3 3 61 2 31 22 31 3P 1 3D 1P 2 3D 2P 3 10D 3
8 8 9 6 13 10
In the sample: