Chiaki has n integers a_1,a_2,…,a_n and another integer c, and she would like to choose a subset of the n integers whose sum does not exceed c. Find the maximum possible sum of the chosen subset.
There are multiple test cases. The first line of the input contains an integer T (1≤T≤2×104), indicating the number of test cases. For each test case:
The first line contains two integers n and c (1≤n≤2×104, 1≤c≤109). The second line contains n integers a_1,a_2,…,a_n (1≤a_i≤2×104).
The sum of all n does not exceed 2×104.
For each test case, output an integer denoting the answer.