Dima and large array
Mother gave Dima a special array of length as a present. Dima can choose any index and add a value to the element at that index. Dima enjoys playing with his array, and from time to time, his mother asks him questions about it. Specifically, she asks for the sum of the numbers in the array within a given range of indices from to (inclusive). However, since she is very busy, she can ask no more than questions. Dima handles this task easily, but can you?
Input
The first line contains two integers and — the number of elements in array and the total number of operations. The next line contains integers: — the initial state of the array. The following lines contain the operations and queries. The first character in the line can be either '' or ''. If a line starts with '', it is an assignment operation, followed by the values and . If a line starts with '', it is a query, followed by the values and .
Output
For each query, print the sum of the numbers in the array within the specified range of indices from to (inclusive) on a separate line.