Problem M
Mirinae
There are
Vita wants to construct a protective barrier surrounding
multiple planets. Let the set of planets to be protected by the
barrier be
Help Vita determine the maximum number of planets to be protected by the barrier.
Input
The first line of input contains an integer
The second line contains
Output
Output a single integer, the maximum number of planets in the protective barrier.
Sample Input 1 | Sample Output 1 |
---|---|
6 3 6 2 5 4 3 |
3 |