Back to Back

Limits 2s, 512 MB

You will be given an array $A$ of size $N$ and $Q$ queries.

The queries will be given in the following form:

Input

The first line will contain an integer $T$, the number of test cases. Then, the first line of each test case will contain an integer $N$, the size of the array $A$ and the next line will contain the array. After that, there will be an integer $Q$, the number of queries followed by $Q$ queries as explained above.

Constraints:

Output

For each test case, print "Case #Y:" (without quotes) in the first line where $Y$ is the case number. Then for each query type 1, print the answer in a new line.

Sample

InputOutput
2
5
10 4 8 7 9
3
2 1 5 2
2 5 5 1
1 1 5
5
11 6 3 10 6
3
2 1 3 1
1 1 3
1 3 4
Case #1:
24
Case #2:
9
10