The first line of the input contains a single integer $T$ ($1\le T\le1000$), the number of test cases.
Each test case includes two lines:
The first line contains $4$ integers $n$, $v$, $q$, $k$ ( $3\le n\le10^{5}$ , $1\le v\le2$, $2\le q< n$, \textbf{$q$ is $even$} , $2\le k\le10^{5}$ ), denoting the size of $S$, the version of the game, the number of the numbers already taken, the parameter denoting the length of increasing subsequence.
The second line contains $q$ integers denoting numbers taken out alreadly in order by steps.
It is guaranteed that $\sum n, \sum q \in [1,10^{6}]$.