You're given a tree with $$$N$$$ vertices. On this tree, there are $$$M$$$ amoebas, each occupying a subset of the vertices. Importantly, the vertices occupied by any given amoeba always form a connected subset.
The goal is to eliminate all the amoebas. This can be achieved by shooting at a vertex, killing any amoeba that has even just a portion of its body within that vertex. More explicitly, if an amoeba is spread across multiple vertices and one of those vertices is targeted, the entire amoeba, regardless of its size or the number of vertices it spans, will be eliminated. You need to determine the minimum amount of ammunition required to eliminate all the amoebas.

Figure 1. The first test from the sample.
Additionally, $$$Q$$$ events will occur. In each event, the scenario is re-evaluated under the assumption that an additional amoeba has appeared. The task is to determine the new minimum amount of ammunition needed.
Note that this new amoeba will be eliminated by the end of the event (i.e., each event is independent).
The first line contains one integer $$$T$$$ ($$$1 \leq T \leq 10^3$$$), the number of test cases.
Then, for each test case:
It is guaranteed that:
For each test, print $$$Q+1$$$ lines. The answer before events, and after each event. Note that the first line should contain the answer before any events take place!
27 3 31 21 32 62 76 44 56 1 2 6 7 4 53 1 2 73 4 5 61 31 72 4 61 2 01 11 1
2 3 2 2 1
| Название |
|---|


