Last week,Radical gave you a problem , but only one guy solved it.He's very down,so today he prepares a simple problem for you.
We all known arrays.And now I want to tell you a K-Periodic array whose length is divisible by k.
For example,array[2,1,2,1,2,1]is at the same time 2-periodic and 6-periodic.
For the given array,consisits of numbers one and two,find the minimum numbers of elements to change to make the array
K-Periodic.If the array already is k-periodic, then the required value equals 0.
Print the minimum number of the array elements we need to change to make the array K-Periodic.