You have an array a with n integers. There are three types of operations:
Your goal is to process the operations and print the answers of all type 3 operations.
The first line of the input contains two integers n and q (1≤n,q≤105). The second line contains n integers a_1,…,a_n. Then q lines follow, each line describes an operation.
It is guaranteed that 1≤a_i,x≤105, 1≤l≤r≤n.
For each operation of type 3, print a single line containing the required sum.