Problem: Phoenix loves beautiful arrays. An array is beautiful if all its subarrays of length k have the same sum. A subarray of an array is any sequence of consecutive elements.

Phoenix currently has an array a of length n. He wants to insert some number of integers, possibly zero, into his array such that it becomes beautiful. The inserted integers must be between 1 and n inclusive. Integers may be inserted anywhere (even before the first or after the last element), and he is not trying to minimize the number of inserted integers.

Input

The input consists of multiple test cases. The first line contains an integer t (1 ≤ t ≤ 50) — the number of test cases.

The first line of each test case contains two integers n and k (1 ≤ k ≤ n ≤ 100).

The second line of each test case contains n space-separated integers (1 ≤ a_i ≤ n) — the array that Phoenix currently has. This array may or may not be already beautiful.

Output

For each test case, if it is impossible to create a beautiful array, print -1. Otherwise, print two lines.

The first line should contain the length of the beautiful array m (n ≤ m ≤ 10^4). You don't need to minimize m.

The second line should contain m space-separated integers (1 ≤ b_i ≤ n) — a beautiful array that Phoenix can obtain after inserting some, possibly zero, integers into his array a. You may print integers that weren't originally in array a.

If there are multiple solutions, print any. It's guaranteed that if we can make array a beautiful, we can always make it with resulting length no more than 10^4.

Example

Input


4
4 2
1 2 2 1
4 3
1 2 2 1
3 2
1 2 3
4 4
4 3 4 2


Output


5
1 2 1 2 1
4
1 2 2 1
-1
7
4 3 2 1 4 3 2

Note

In the first test case, we can make array a beautiful by inserting the integer 1 at index 3 (in between the two existing 2s). Now, all subarrays of length k=2 have the same sum 3. There exists many other possible solutions, for example: 

  * 2, 1, 2, 1, 2, 1 
  * 1, 2, 1, 2, 1, 2 



In the second test case, the array is already beautiful: all subarrays of length k=3 have the same sum 5.

In the third test case, it can be shown that we cannot insert numbers to make array a beautiful.

In the fourth test case, the array b shown is beautiful and all subarrays of length k=4 have the same sum 10. There exist other solutions also.

Solution (in PYTHON3):

Solution:
def all_done(d):
    ans = 1
    for i in d.keys():
        if d[i] == 0:
            ans = 0
            break
    return ans

t = int(input())
while t:
    t = t - 1
    n,k = [int(s) for s in input().split()]
    a = [int(s) for s in input().split()]
    if n == k:
        print(n)
        for i in a:
            print(i,end=" ")
        print()
    else:
        d = {}
        for i in a:
            try:
                d[i] = d[i] + 1
            except KeyError:
                d[i] = 1
        # print(d)

        if len(d) > k:
            print(-1)
        else:
            ans = []
            total_subsequence = n-k+1
            index = 0
            dic = {}
            for i in d.keys():
                dic[i] = 0
            # print(dic)
            for i in range(k):
                # print(index)
                # print(dic)
                if dic[a[index]] == 0:
                    ans.append(a[index])
                    dic[a[index]] = 1
                    index = index + 1
                    continue
                else:
                    # print("Hello")
                    # print(all_done(dic))
                    if all_done(dic) == 0:
                        # print("hello")
                        for i in dic.keys():
                            if dic[i] == 0:
                                ans.append(i)
                                dic[i] = 1
                                break
                    else:
                        ans.append(a[index])
                        index = index + 1
            # print(ans)
            dic = {}
            for i in range(k):
                try:
                    dic[ans[i]] = dic[ans[i]] + 1
                except KeyError:
                    dic[ans[i]] = 1
            # print(index)
            it = 1
            while index != n:
                # print(it)
                temp_d = dic.copy()
                x = it
                for i in range(k-1):
                    temp_d[ans[x]] = temp_d[ans[x]] - 1
                    x = x + 1
                for i in temp_d.keys():
                    if temp_d[i] != 0:
                        next_ele = i
                        break
                # print(temp_d)
                # print(dic)
                if next_ele == a[index]:
                    ans.append(next_ele)
                    index = index + 1
                else:
                    ans.append(next_ele)
                it = it + 1
            print(len(ans))
            for i in ans:
                print(i, end=" ")
            print()