You are given an array $$$a$$$ of length $$$n$$$. Your task is to process $$$q$$$ queries of three types:
Output the answer for each type $$$3$$$ query.
The first line of each test contains two integers $$$n$$$ and $$$q$$$ ($$$1 \le n \le 10^5$$$, $$$1 \le q \le 2 \cdot 10^5$$$) — the length of $$$a$$$ and the number of queries, respectively.
The second line contains $$$n$$$ integers $$$a_1,a_2,\ldots,a_n$$$ ($$$1 \le a_i \le 10^7$$$) — the elements of $$$a$$$.
Each of the next $$$q$$$ lines contains a query in one of three formats:
It is guaranteed that there is at least one type $$$3$$$ query.
For each type $$$3$$$ query, output the answer — the sum of $$$a_l,a_{l+1},\ldots,a_r$$$.
5 101 2 3 4 53 1 51 1 103 1 52 1 4 23 1 41 3 152 3 5 53 1 52 1 5 13 2 4
15 24 7 15 3