You are given a sequence $$$a$$$ of length $$$n$$$. Your task is to process $$$q$$$ events of the following $$$4$$$ types:
The first line of input contains two integers $$$n$$$ and $$$q$$$ ($$$1 \leq n, q \leq 200\,000$$$). The next line contains $$$n$$$ integers — $$$i$$$-th of them represents $$$a_i$$$ ($$$1 \leq a_i \leq 10^9$$$). The next $$$q$$$ lines contain descriptions of events. Each line starts with one number $$$t$$$ ($$$1 \leq t \leq 4$$$) representing the type of the event. If:
Output one line for each query of type $$$3$$$ or $$$4$$$. The $$$i$$$-th of them should contain the answer for the $$$i$$$-th such query from the input.
5 8 1 2 3 2 1 4 5 1 1 1 4 4 3 2 1 2 1 4 4 2 2 3 7 4 1 3 4
3 2 2 4 2
| Название |
|---|


