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:
'''test=int(input())
for i in range(test):
    n=int(input())
    a=[int(j) for j in input().split()]
    b=[int(k) for k in input().split()]
    ans=""
    if a[0]!=b[0]:
        ans="NO"
    else:
        pos=0
        neg=0
        for i in range(n):
            if a[i]>b[i] and  not neg:
                ans="NO"
                break

            elif a[i]<b[i] and not pos:
                ans="NO"
                break
            else:
                if a[i]==1:
                    pos+=1
                elif a[i]==-1:
                    neg+=1
                ans="YES"
    print(ans)'''

'''n=int(input())
nums=[int(i) for i in input().split()]
from collections import defaultdict
hashmap=defaultdict(int)
sum_=0
ans=0
for i in range(n):
    sum_+=nums[i]
    if sum_ in hashmap:
        ans+=(n-i)*hashmap[sum_]
        hashmap[sum_]+=1
    elif sum_ not in hashmap and not sum_:
        ans+=n-i
        hashmap[0]+=1
    else:
        hashmap[sum_]+=1
print(int(n*(n+1)/2-ans))'''

'''import heapq
test=int(input())
for i in range(test):
    n=int(input())
    monst=[]
    kill=[0]*n
    for j in range(n):
        a,b=[int(i) for i in input().split()]
        monst.append((a,b,j))
    heap=sorted(monst,key=lambda x:x[0]-x[1])
    penalty=[0]*n
    bull=0
    for k in range(n):
        if not kill[heap[k][2]]:
            bull+=heap[k][0]
            start=k
            next_=0 if k==n-1 else k+1
            while monst[]

'''
'''test=int(input())
for i in range(test):
    a,b,c,d=[int(i) for i in input().split()]
    first=b
    second=c
    third=c
    
    print(first,second,third,sep=" ")'''

'''
test=int(input())
for i in range(test):
    x,n,m=[int(i) for i in input().split()]
    ans="NO"
    if n==m==0:
        ans="NO"
    else:
        spell1=0
        spell2=0
        for i in range(n):
            if x<=0 or x<=m*10:
                ans="YES"

            x=int(x/2)+10

        if x<=0 or x<=m*10:
            ans="YES"



    print(ans)
    '''

'''n,k=[int(i) for i in input().split()]
from collections import defaultdict
graph=defaultdict(list)
for i in range(n-1):
    p,c=[int(i) for i in input().split()]
    graph[p].append(c)
    graph[c].append(p)

size=[0]*(n+1)
depth=[0]*(n+1)
depth[0]=-1
ans=[0]*(n+1)
def dfs(p,c):
    size[c]=1
    depth[c]=1+depth[p]
    for j in graph[c]:
       if j!=p:
            size[c]+=dfs(c,j)
    ans[c]=size[c]-depth[c]
    return size[c]    
            
    

dfs(0,1)

ans.sort(reverse=True)
res=sum([ans[a] for a in range(n-k)])
print(res)

print(ans)
'''
'''test=int(input())
def check(arr,min_,max_,k):
    if len(arr)<2:
        return [min_,max_]
    min_=max(min(arr[0],arr[-1])+1,min_)
    max_=min(max(arr[0],arr[-1])+k,max_)
    return check(arr[1:-1],min_,max_,k) 

def again(arr,left,right,dict_):
    if len(arr)<2:
        return 
    k=arr[0]+arr[-1]
    if k>=left and k<=right:
        dict_[k]+=1
    again(arr[1:-1],left,right,dict_)

from collections import defaultdict
for i in range(test):
    n,k=[int(t) for t in input().split()]
    arr=[int(k) for k in input().split()]
    min_,max_=check(arr,0,float("inf"),k)
    option=defaultdict(int)
    again(arr,min_,max_,option)
    #print(max_)
    if not len(option.values()):
        print(int(n/2))
    else:
        print(int(n/2-max(option.values())))'''


'''test=int(input())
from collections import defaultdict
for i in range(test):
    n=int(input())
    nums=[int(i) for i in input().split()]
    cnt=defaultdict(list)
    i=0
    flag=0
    cnt[0].append(nums[0])
    for k in range(1,n):
        if nums[k]>0 and nums[k-1]<0 or (nums[k]<0 and nums[k-1]>0):
            flag=1
        if flag:
            i+=1
            cnt[i].append(nums[k])
            flag=0
        else:
            cnt[i].append(nums[k])
    ans=0
    for t in cnt.values():
        ans+=max(t)
    print(ans)'''

'''test=int(input())
for i in range(test):
    x,y=[int(i) for i in input().split()]
    a,b=[int(i) for i in input().split()]
    ans=0
    if x==0 and y==0:
        ans=0
    elif x>=0 and y>=0:
        min_=min(x,y)
        max_=max(x,y)
        if x!=y:
            ans=min((max_-min_)*a+min_*b,(x+y)*a)
        else:
            ans=min(y*b,2*a*y)
    print(ans)
'''
'''test=int(input())
for i in range(test):
    t=input()
    ans=""
    if len(t)<=2:
        ans=t
    else:
        if "0" not in t or "1" not in t:
            ans=t
        else:
            for i in range(len(t)-1):
                if t[i]==t[i+1]:
                    ans+=t[i]+( "0"if t[i]=="1"else "1")
                else:
                    ans+=t[i]
        ans+=t[len(t)-1]    




    print(ans)'''

"""n=int(input())
label=[int(i) for i in input().split()]
from collections impot defaultdict
graph=defaultdict(list)
for i in range(n-1):
    c,d=[int(j) for j in input().split()]
    graph[c].append(i+2)
    graph[i+2].append(c)
    """
#cf 638

'''test=int(input())
for k in range(test):
    n=int(input())
    a=2**(n)
    b=0
    flag=1
    for i in range(1,int(n/2)):
        a+=2**(i)
    i=int(n/2)
    while i<n:
        b+=2**(i)
        i+=1
    print(abs(a-b))'''

'''test=int(input())
for i in range(test):
    n,k=[int(i) for i in input().split()]
    arr=[int(i) for i in input().split()] 
    ans=-1
    if max(arr)>k:
        flag=1
        for i in range(len(arr)-1):
            if arr[i]!=arr[i+1]:
                flag=0
                break
        if flag:
            print(len(arr))
            for b in arr:
                print(b,end=" ")
        else:
            print(ans)
    elif k==n:
        print(len(arr))
        for b in arr:
            print(b,end=" ")
    else:
        i=1
        j=0
        a=[]
        a.append(arr[0])
        while i<len(arr):
            if a[j]==1:
                if arr[i]==k:
                    a.append(arr[i])
                    i+=1
                    j+=1
                else:
                    a.append(k)
                    j+=1
            else:
                if arr[i]==a[j]-1:
                    a.append(arr[i])
                    i+=1
                    j+=1
                else:
                    a.append(a[j]-1)
                    j+=1
        print(len(a))
        for t in a:
            print(t,end=" ")'''


'''test=int(input())
for i in range(test):
    n,k=[int(i) for i in input().split()]
    s=input()
    order="".join(sorted([j for j in s]))
    if k==1:
        print(order)
    elif k==2:'''


test=int(input())
for i in range(test):
    n,k=[int(i) for i in input().split()]
    arr=[int(i) for i in input().split()]
    have=set()
    for j in arr:
        have.add(j)
    if len(have)>k:
        print(-1)
    else:
        s=1
        while len(have)<k:
            have.add(s)
            s+=1
        print(n*k)
        for i in range(n):
            for j in have:
                print(j,end=" ")