#D10033. shirts

    ID: 8341 Type: Default 1000ms 268MiB

shirts

shirts

Contest T-shirts

Segtree has M M contest T-shirts.

He decided to spend N N days on the contest T-shirt alone, and told i=1,2,3, dots,N i = 1, 2, 3, \ dots, N "Ai A_i T-shirt on the i i day." I made a plan for N N 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.

M M N N A1 A_1 A2 A_2  ldots \ ldots AN A_N

output

Output the minimum number of plans that need to be changed.

However, insert a line break at the end.

Constraint

  • 2 leqM leq109 2 \ leq M \ leq 10 ^ 9
  • 1 leqN leq105 1 \ leq N \ leq 10 ^ 5
  • 1 leqAi leqM 1 \ leq A_i \ leq M
  • 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.

M M N N A1 A_1 A2 A_2  ldots \ ldots AN A_N

outputFormat

output

Output the minimum number of plans that need to be changed.

However, insert a line break at the end.

Constraint

  • 2 leqM leq109 2 \ leq M \ leq 10 ^ 9
  • 1 leqN leq105 1 \ leq N \ leq 10 ^ 5
  • 1 leqAi leqM 1 \ leq A_i \ leq M
  • 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