Statement
Statement language
You are given rice cakes. The size of the -th rice cake is .
You may choose two unused rice cakes and make one bundle. The rice cake placed on top must be strictly larger than the one placed below. A rice cake cannot be used in more than one bundle.
Find the maximum number of bundles that can be made.
Input
The input is given from Standard Input in the following format:
Each case is given in the following format:
Output
For each test case, print the maximum number of bundles.
Constraints
- .
- .
- ().
- The sum of over all test cases does not exceed .
Subtasks
Samples
Input
1
7
1 1 2 2 3 3 3
Output
3
Pairing rice cakes with sizes , , and creates three bundles. The one remaining rice cake cannot form another bundle, so the maximum number is .