"Dad, our city and the neighboring city haven't got any income for years. What's happening?"
"Well, son, there's an ongoing pandemic in the neighboring city, you know..."
"Fine. And what about our city?"
"I really wish to knock his head off when the king decided to build this country like a tree and made our city a leaf!"There are $n$ cities in ZYB's kingdom, and it's connected by $n-1$ bidirectional roads between the cities. Initially, the $i$th city has a prosperity index equal to $c_i$, when a trade happens between two cities $u$ and $v$, the income of city $u$ increases by $c_v$, and the income of city $v$ increases by $c_u$. (Strange definition, isn't it?)
Every once in a while, ZYB will hold a trading festival to boost the economy in his kingdom(and to get more taxes, of course!). However, some cities must be shut down and not allowed to pass during the festival due to the pandemic. Formally, when a trading festival is held, a list of $k$ cities $a_1,a_2,\dots,a_k$ that are shut down are informed, and for any pair of cities $(u,v)(u<v)$, if the unique path between them doesn't contain any of the $k$ cities, then a trade happens between them, i.e., the income of city $u$ increases by $c_v$, and the income of city $v$ increases by $c_u$.
Initially, the income of every city in ZYB's kingdom is zero. Then $q$ events happen, each in one of the following forms:
- Let's hold a trading festival! A list of $k$ cities $a_1,a_2,\dots,a_k$ are given, then for any pair of cities $(u,v)(u<v)$, if the unique path between them doesn't contain any of the $k$ cities, then a trade happens between them.
- Find the current total income of some city $v$.
It is guaranteed that $\sum n \leq 10^6, \sum q \leq 10^6$ and $\sum k \leq 10^6$ over all test cases.