You are a sociologist studying a kingdom. The kingdom has a capital, several villages, and roads connecting them. Your research shows three conditions under which one village economically affects another. Village P affects village Q if any of the following holds.
The kingdom is building trading posts to lift the economy of its villages. Building a trading post in a village raises the revenue of that village, and it raises the revenue of every village that this village affects under the rules above. The king wants to know what his new trading posts are doing, so now and then he asks for the revenue of one village.
The king's actions are given in order, both building trading posts and asking about a village. Answer his questions.
The input holds several test cases. Each test case begins with a line of three integers n (1≤n≤100,000), m (0≤m≤100,000), and q (1≤q≤200,000): the number of villages, the number of roads, and the number of actions the king performs. Villages are numbered from 1 to n, and village 1 is the capital.
Each of the next m lines holds two integers a and b (1≤a,b≤n, a=b), a road between village a and village b. A road can be travelled in either direction. Two villages may be joined by more than one road, and in that case each road is a separate way to travel. Every village is reachable from the capital.
The next q lines give the king's actions in order. An action has one of two forms.
+ k x
The king builds a trading post in village k (1≤k≤n), which raises the revenue of every affected village by x (1≤x≤1,000).
? k
The king asks for the total revenue of village k (1≤k≤n), counting the trading posts built in that village and the trading posts built in every village that affects it.
The parts of an action are separated by a single space, with no leading or trailing blanks. The input ends with a line holding three zeros.
For each ? k action, print one integer on its own line, the answer to that question. Answer the questions in the order they are asked. Print no extra spaces and no blank lines.