Given two arrays A, B of length n and m separately, you have to merge them into only one array C (of length n + m) obeying the rule that the relative order of numbers in the same original array does not change in the new array. After merging, please calculate the and output it. If there are multiple costs, please output the minimum of them.
输入
The first line of input file contains an integer T (1≤T≤50), describing the number of test cases. Then there are 3 T lines, with every three lines representing a test case. The first line of the test case contains two integers n and m (1≤n,m≤105) as described above. The second line of that contains n integers, ith of which represents the A[i]. The third line of that contains m integers, ith of which represents the B[i]. The numbers in both array have range in [0,108]. It is guaranteed that the sum of n + m in all cases does not exceed 106.
输出
You should output exactly T lines. For each case, print Case d: (d represents the order of test case)first and then print a number representing the minimum cost on the same line.