It is Advent season. There are
The problem is that there is a possibility that the lights don't light up all
Input Specification
The first line of input contains the number
The second line of input contains the number
The third line contains the number
Each of the following
The positions will be distinct and from the interval
Output Specification
You must output the required number from the task.
Sample Input 1
5
2
2
1
5
Sample Output 1
0
Explanation for Sample Output 1
It's not necessary to add lights to the street, since all
Sample Input 2
26
3
3
3
19
26
Sample Output 2
2
Sample Input 3
13
2
10
1
2
Sample Output 3
1
Explanation for Sample Output 3
It is necessary to add one lamp, for example at location
Comments