You are given an integer sequence a1,a2,…,an. If ai+ai+1+⋯+ai+k−1 is even for every integer i with 1≤i≤n−k+1, the sequence is called a k-even-sum sequence.
You can replace some elements of the sequence with any integers you want. Find the minimum number of elements you have to replace to turn the sequence into a k-even-sum sequence, and print the sequence you get.