#include <bits/stdc++.h>
using namespace std;


int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);

  int n; cin >> n;
  map<int, int> a, b;
  for(int i = 0; i < n; i++) {
  	int v; cin >> v;
  	(i % 2 == 0 ? a[v]++ : b[v]++);
  }
  int s = 0, t = 0, p = 0, q = 0;
  int mx1 = 0, mx2 = 0;
  for(int i = 0; i < 100005; i++) {
  	if(a[i] >= s) {
  		t = s;
  		s = a[i];
  		mx1 = i;
  	}
  	if(b[100005 - i] >= p) {
  		q = p;
  		p = b[100005 - i];
  		mx2 = 100005 - i;
  	}
  }
  if(mx1 != mx2) {
  	cout << n - s - p << endl;
  }
  else {
  	cout << min(n - s - q, n - t - p) << endl;
  }
  
  return 0;
}	
