Problem Description
We have some coins on the table. Each coin is characterized by its size. We want to arrange these coins into successive piles so that the following hold:
You will be given the size of each coin. You are to calculate the maximal number of piles that we can organize according to the given rules. Each coin should be used in exactly one pile.
Input
There are multiple cases (no more than 100).
There is two lines for each case. The first line is a number n (1 <= n <= 50), indicating the number of coins. A line with n integers follows, giving the sizes of the coins.
Note that the maximal of the sizes will be unique, so it's always possible to form at least one pile.
Output
For each case, output the maximal number of piles that we can organize.
Sample Input
6
1 2 2 2 2 3
6
1 1 2 2 2 3
6
1 2 2 2 3 4
Sample Output
2
3
3