Chef wants to impress Chefina by giving her the maximum number of gifts possible.
Chef is in a gift shop having items where the cost of the item is equal to . Chef has amount of money and a off discount coupon that he can use for at most one of the items he buys.
If the cost of an item is equal to , then, after applying the coupon on that item, Chef only has to pay (rounded up to the nearest integer) amount for that item.
Help Chef find the maximum number of items he can buy with amount of money and a discount coupon given that he can use the coupon on at most one item.
Input Format
- The first line of the input contains a single integer denoting the number of test cases. The description of test cases follows.
- The first line of each test case contains two space-separated integers and .
- The next line contains space-separated integers, where the integer denotes the cost of the item.
Output Format
For each test case, print a single line containing one integer ― the maximum number of items Chef can buy.
Constraints
- Sum of over all test cases does not exceed .
Sample Input 1
3
1 4
5
3 15
4 4 5
3 10
6 7 4
Sample Output 1
1
3
2
Explanation
Test case : After applying the discount, Chef can buy the only available item at .
Test case : Chef can buy all three items even without using the coupon.
Test case : After applying coupon on the third item, Chef can buy the second and the third item at .
ConversionConversion EmoticonEmoticon