You are given an array A of N integers. If you make the array whole using the following operation, then what is the minimum number of operations required to make the entire array even?
Note: It can be proved that this is always possible.
Operation
Select an index 1≤i<N and perform operation:
P=Ai+Ai+1; Q=Ai-Ai+1;
Ai=P; Ai+1=Q;
Input format
Output format
For each test case print a single line denoting the minimum number of operations required to make the whole array even.
Constraints
If we choose index 1 A1=1+3=4 and A2=1-3=-2.
So only one operation is required to make array even.