The first line contains a single integer $T$ ($1 \leq T \leq 50$), the number of test cases. For each test case:
The first line contains two integers $n$ and $m$ ($1 \leq m\leq n \leq 20$, $n+m\leq 23$), denoting the number of boxes and the parameter $m$.
The second line contains $n$ integers $w_1,w_2,\dots,w_n$ ($1\leq w_i\leq 50\,000$), denoting the number of sweets in each box.
It is guaranteed that there are at most $2$ cases such that $n>12$.