Problem: You are given an array consisting of integers (it is guaranteed that is even, i.e. divisible by ). All does not exceed some integer .
Your task is to replace the minimum number of elements (replacement is the following operation: choose some index from to and replace with some integer in range ) to satisfy the following conditions:
- after all replacements, all are positive integers not greater than ;
- for all from to the following equation is true: , where should be the same for all pairs of elements.
You have to answer independent test cases.
Input Format: The first line of the input contains one integer () — the number of test cases. Then test cases follow.
The first line of the test case contains two integers and () — the length of and the maximum possible value of some correspondingly. It is guratanteed that is even (i.e. divisible by ). The second line of the test case contains integers (), where is the -th element of .
It is guaranteed that the sum of (as well as the sum of ) over all test cases does not exceed (, ).
Output Format: For each test case, print the answer — the minimum number of elements you have to replace in to satisfy the conditions from the problem statement.