You are given an array A of N integer elements.
You are also given Q queries where each query is one of the following types:
Note: Assume 1-based indexing.
Input format
Output format
For each test case, print the value of the function for queries of type 2 in the new line.
Constraints
1≤T≤101≤N≤1051≤Q≤1031≤A[i],val≤1061≤i≤N1≤L≤R≤N