Carl has an array of candies. The i-th element of the array (indexed starting from 1) is , representing sweetness value of the i-th candy. He would like to perform a series of operations. There are two types of operation:
Update the sweetness value of a candy in the array.
Query the sweetness score of a subarray.
The sweetness score of a subarray from index to is:
More formally, the sweetness score is the sum of , for all from to inclusive.
For example, the sweetness score of:
is
is
is
Carl is interested in finding out the total sum of sweetness scores of all queries. If there is no query operation, the sum is considered to be 0. Can you help Carl find the sum?
输入格式
The first line of the input gives the number of test cases, . test cases follow. Each test case begins with a line containing and . The second line contains integers describing the array. The i-th integer is . The j-th of the following lines describe the j-th operation. Each line begins with a single character describing the type of operation ( for update, for query).
For an update operation, two integers and follow, indicating that the -th element of the array is changed to .
For a query operation, two integers and follow, querying the sweetness score of the subarray from the -th element to the -th element (inclusive).
输出格式
For each test case, output one line containing Case #x: y, where x is the test case number (starting from 1) and y is the total sum of sweetness scores of all the queries.