This problem contains multiple test cases.
The first line contains a single integer $T$($1 \leq T \leq 10$), the number of test cases.
Each test case starts with a line of two integers $n,m(1\le n,m\le 10^5)$, the initial length of the permutation and the number of operations.
Then follows a line of $n$ numbers, representing a permutation of $1...n$.
For the following $m$ lines, each line is of the following format:
- $\texttt{1 L R}$, asking you to reverse a subarray.
- $\texttt{2 L R}$, asking you to complement certain elements.
- $\texttt{3 i v}$, asking you to insert an element.
- $\texttt{4 i}$, asking you to print the value of the $i$th element.
- $\texttt{5 v}$, asking you to print the position of $v$.