You are given N pencils. You have to make pairs of these pencils. The condition for making pairs is:
If (a,b) is any pair of pencils, then b≥2×a. Here a and b are the sizes of pencils.
Now, your task is to determine the number of such pairs and the number of pencils that could not be paired with any pencils.
Input format
Output format
For each test case, print two space-separated integers where the first integer denotes the number of pairs formed and the second integer denotes the number of unpaired pencils.
The answer to each test case must be printed in a new line.
Constraints
1≤T≤10
1≤N≤105
0≤Si≤105
In the first test case :-
we can form the following pairs
(1,3)(2,4) and 5 remains unpaired hence maximum pairs are 2
In second test case :-
(1,4)(2,4) are two pairs hence no pencil left unpaired