"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N    = ~~arg[0].split(" ")[0];
    const odd  = arg[1].split(" ").filter((val,idx)=>idx % 2 === 0);
    const even = arg[1].split(" ").filter((val,idx)=>idx % 2 !== 0);
    const a = arg[1].split(" ");
    
    const oddMap  = [];
    const evenMap = [];
    
    for(let i in a) {
        if(i % 2 === 0) {
            let exist = oddMap.filter(n=>n.val===a[i]);
            
            if(exist.length > 0) {
                exist.map(n=>n.cnt++);
            } else {
                oddMap.push({val:a[i], cnt: 1});
            }
        } else {
            let exist = evenMap.filter(n=>n.val===a[i]);
            
            if(exist.length > 0) {
                exist.map(n=>n.cnt++);
            } else {
                evenMap.push({val:a[i], cnt: 1});
            }
        }
    }
    
    const oddMinus  = oddMap.sort((a,b)=>b.cnt - a.cnt)[0].cnt;
    const evenMinus = evenMap.sort((a,b)=>b.cnt - a.cnt)[0].cnt;
    
    console.log(N - oddMinus - evenMinus);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));