Problem: There are a lot of things which could be cut — trees, paper, "the rope". In this problem you are going to cut a sequence of integers.
There is a sequence of integers, which contains the equal number of even and odd numbers. Given a limited budget, you need to make maximum possible number of cuts such that each resulting segment will have the same number of odd and even integers.
Cuts separate a sequence to continuous (contiguous) segments. You may think about each cut as a break between two adjacent elements in a sequence. So after cutting each element belongs to exactly one segment. Say, two cuts . On each segment the number of even elements should be equal to the number of odd elements.
The cost of the cut between and numbers is bitcoins. Find the maximum possible number of cuts that can be made while spending no more than bitcoins.
Input Format: First line of the input contains an integer () and an integer () — the number of elements in the sequence and the number of bitcoins you have.
Second line contains integers: , , ..., () — elements of the sequence, which contains the equal number of even and odd numbers
Output Format: Print the maximum possible number of cuts which can be made while spending no more than bitcoins.
Note: In the first sample the optimal answer is to split sequence between and . Price of this cut is equal to bitcoins.
In the second sample it is not possible to make even one cut even with unlimited number of bitcoins.
In the third sample the sequence should be cut between and , and between and . The total price of the cuts is bitcoins.