Alice works as a restaurant manager. The restaurant has prepared N lunch boxes and Alice plans to distribute them to some schools. Consider that there are M schools and an ith school orders Ai lunch boxes.
She wants to distribute lunch boxes to as many schools as possible. Also, she has the following rule:
Your task is to help Alice to determine the maximum number of schools that can get lunch boxes.
Input format
Output format
For each test case, you are required to print one integer that represents the maximum number of schools that can receive lunch boxes.
Constraints
1≤t≤10
1≤N,M≤105
1≤Ai≤106,1≤i≤M
In first test case 1,3,4 schools got lunch-boxes.
In second test case 3,4 and 2(or 5) schools got lunch boxes.