#GYM104768B. The Game

The Game

本题没有可用的提交语言。

Description

Randias is playing a game. He is given two multisets (a set which can contain duplicate elements) $A$ and $B$, consists of $n$ and $m$ integers $A_{1},A_{2}, \dots ,A_{n}$, $B_{1},B_{2}. \dots ,B_{m}$ repsectively. He can perform the following operation any number of times:

  • Choose one element $x$ where $x \in A$, change $x$ to $x+1$. Then remove the minimal element in $A$, Note that if there are more than one minimal element in $A$, we only remove one of them.

For example, if $A=\{4,4,5,5,6\}$ and we choose $x=5$, $A$ will become $\{4,5,6,6\}$ after one operation.

He wants to know whether he can make $A=B$ after several (possibly zero) operations? If he can make it, please help him to determine which operations need to be performed.

Two multisets are consider to be the same, if for all $x$, the number of occurrence of $x$ in $A$ and $B$ are the same.

The first line contains $t$ ($1\le t \le 5\cdot 10^4$), representing the number of testcases.

For each testcase, the first line contains two integers $n,m$ ($1\le m \le n \le 3\cdot 10^5$), representing the size of two multisets.

The following line contains $n$ integers $A_{1},A_{2}, \dots ,A_{n}$ ($1\le A_{i} \le 10^9$).

The following line contains $m$ integers $B_{1},B_{2}, \dots, B_{m}$ ($1\le B_{i} \le 10^9$).

It is guaranteed that the sum of $n$ and the sum of $m$ over all test cases does not exceed $3 \cdot 10^5$.

For each test case, if Randias cannot let $A=B$, output "$-1$".

Otherwise, on the first line, output the number of operations $L$ ($0 \le L \le n$) Randias needs to make.

The following line contains $L$ integers $x_{1},x_{2},\dots,x_{L}$, representing the integer $x$ each operation choose. You must ensure that $x \in A$ before each operation.

If there are multiple solutions, output any.

Input

The first line contains $t$ ($1\le t \le 5\cdot 10^4$), representing the number of testcases.

For each testcase, the first line contains two integers $n,m$ ($1\le m \le n \le 3\cdot 10^5$), representing the size of two multisets.

The following line contains $n$ integers $A_{1},A_{2}, \dots ,A_{n}$ ($1\le A_{i} \le 10^9$).

The following line contains $m$ integers $B_{1},B_{2}, \dots, B_{m}$ ($1\le B_{i} \le 10^9$).

It is guaranteed that the sum of $n$ and the sum of $m$ over all test cases does not exceed $3 \cdot 10^5$.

Output

For each test case, if Randias cannot let $A=B$, output "$-1$".

Otherwise, on the first line, output the number of operations $L$ ($0 \le L \le n$) Randias needs to make.

The following line contains $L$ integers $x_{1},x_{2},\dots,x_{L}$, representing the integer $x$ each operation choose. You must ensure that $x \in A$ before each operation.

If there are multiple solutions, output any.

6
5 3
1 2 2 3 3
2 3 4
4 2
1 2 2 4
2 4
5 2
2 3 3 4 4
5 5
6 1
1 1 1 1 1 1
4
4 2
1 1 1 2
2 2
4 1
1 1 1 1
2
2
1 3 
-1
3
2 4 4 
5
1 1 1 2 3 
2
1 1 
-1