Given an array of $$$n$$$ integers, your task is to process $$$q$$$ queries of the following types:
The first line contains two integers $$$n$$$ and $$$q$$$.
The second line contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ The next $$$q$$$ lines each describe a query in one of the following formats:
Print the result of each 2 l r x query.
5 5 1 1 2 3 3 1 1 3 2 1 2 1 4 3 1 2 4 2 3 2 1 5 9 2 2 3 3
3 2 0