Before participating in IOI 2023, you need to solve the following practice problem.
You have a sequence $$$a$$$ of length $$$n$$$. You need to perform $$$q$$$ queries.
You may not go to IOI 2023, but the problem is still interesting to solve. Therefore, Little Cyan Fish asks you to solve it!
The first line of the input contains two integers $$$n$$$ and $$$q$$$ ($$$1 \leq n,q \leq 2 \times 10^5$$$).
The next line of the input contains $$$n$$$ integers $$$a_1, a_2, \cdots, a_n$$$ ($$$0 \leq a_i \leq 10^{12}$$$).
The next $$$q$$$ lines of the input describes all the queries in the following format:
For each query of type $$$3$$$, output a single line contains a single integer, indicating the answer.
13 11 6 14 14 6 3 6 4 13 10 3 12 5 11 1 2 2 2 2 1 11 3 4 6 2 1 6 2 1 9 3 2 13
33 107