Score : 200 points
You have written N problems to hold programming contests. The i-th problem will have a score of P_i points if used in a contest.
With these problems, you would like to hold as many contests as possible under the following condition:
The same problem should not be used in multiple contests. At most how many contests can be held?
Input is given from Standard Input in the following format:
N A B P_1 P_2 ... P_N
Print the answer.
7 5 15 1 10 16 2 7 20 12
2
Two contests can be held by putting the first, second, third problems and the fourth, fifth, sixth problems together.
8 3 8 5 5 5 10 10 10 15 20
0
No contest can be held, because there is no problem with a score of A = 3 or less.
3 5 6 5 6 10
1