The first line contains a number $T(1\leq T\leq 12000)$, denoting the number of test cases.
The first line of each test case contains four integers $n,s,t,h(1\leq n\leq 10^5, 0\leq s,t \leq n-1, 1\leq h \leq 10^9)$, denoting the number of referees, the number of highest and lowest scores that need to be eliminated, and the scoring range for referees, respectively. It is guaranteed that $s+t\leq n-1$.
Then one line containing $n-1$ integers $a_1,...,a_{n-1}(1\leq a_i\leq h)$ follow, denoting the scores already awarded to gispzjz.
Then another line containing $n-1$ integers $b_1,...,b_{n-1}(1\leq b_i\leq h)$ follow, denoting the scores already awarded to zyb.
It is guaranteed that $\sum n\leq 10^6$ over all test cases.