#include <bits/stdc++.h>
using namespace std;
int a[3] = {0, 0, 0}, s;
int main() {
  string n;
  getline(cin, n);
  string x;
  getline(cin, x);
  s = x.size();
  s = (s + 1) / 2;
  for (int i = 0; i < 2 * s - 1; i += 2) {
    if (x[i] == '1') a[0]++;
    if (x[i] == '2') a[1]++;
    if (x[i] == '3') a[2]++;
  }
  cout << s - max(a[0], max(a[1], a[2]));
}
