There are $$$n$$$ countries numbered from $$$1$$$ to $$$n$$$ in Erathia. Each country can be regarded as a chain with $$$m+1$$$ nodes numbered from $$$1$$$ to $$$m+1$$$. Initially, node $$$(a, b)$$$ is connected with node $$$(a, b + 1)$$$ by a street where node $$$(a, b)$$$ denotes the $$$b$$$-th node of the $$$a$$$-th country. There are no bridges between any two countries at first.
You need to process $$$q$$$ queries of the following two types.
Your task is to print which country the hero is in at last for the second kind of query. It can be proved that the hero's route is always unique under these constraints.
The first line contains three integers $$$n$$$, $$$m$$$ and $$$q$$$ ($$$1 \leq n, m, q \leq 10 ^ 5$$$).
Each of the following $$$q$$$ lines represents a query with format described above.
For each query of type $$$2$$$, output a line with an integer representing the answer.
3 4 13 2 2 1 1 3 2 1 2 2 2 3 1 2 4 2 1 2 2 2 3 1 2 1 2 1 2 2 2 3
2 2 1 3 3 1 2 3 2 1