#D10033. shirts
shirts
shirts
Contest T-shirts
Segtree has contest T-shirts.
He decided to spend days on the contest T-shirt alone, and told " T-shirt on the day." I made a plan for to wear.
However, if you keep the current plan, you may not be able to do the laundry in time, so I would like to change the plan if necessary so that I will not wear the same clothes for two consecutive days.
Find the minimum number of plans that need to be changed. It can be proved that the conditions can always be met by changing the plan under the given constraints.
input
Input is given from standard input in the following format.
output
Output the minimum number of plans that need to be changed.
However, insert a line break at the end.
Constraint
- All inputs are integers.
Input example 1
twenty three 2 2 1
Output example 1
1
Input example 2
3 6 1 1 1 2 2 3
Output example 2
2
Example
Input
2 3 2 2 1
Output
1
inputFormat
input
Input is given from standard input in the following format.
outputFormat
output
Output the minimum number of plans that need to be changed.
However, insert a line break at the end.
Constraint
- All inputs are integers.
Input example 1
twenty three 2 2 1
Output example 1
1
Input example 2
3 6 1 1 1 2 2 3
Output example 2
2
Example
Input
2 3 2 2 1
Output
1
样例
2 3
2 2 1
1