Dima and array 1
Mother gave Dima as a present an array of length . The array is not simple, but special. Dima can choose three numbers and и , and all elements with indexes from to magically become equal to . Dima plays with his array, and mother gives his questions time from time — what is the sum of all the numbers in array with indexes from to inclusive? Dima easily managed this problem, but what about you?
Input
The first line contains two integers and — the number of elements in array and the total number of operations. In the next line numbers are given: — the initial state of array. The next lines contain the operations and queries. The first character in the line can be either or . If the line starts with , this is an assignment operation. Next values are and , their restrictions are given earlier. If the line starts with , this is a query. Then go numbers and .
Output
For each query print on a separate line the sum of the numbers in array with indexes from to inclusive.