#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;


int main() {

    int N;
    cin >> N;
    vector<int> A(N);
    rep(i,N){
        cin >> A[i];
    }

    map<int, int> K;
    for(int i = 0; i < N; i++){
        K[A[i]]++;
    }

    int ans = 0;
    for(auto m:K){
        if(m.second % 2 != 0){
            ans++;
        }
    }
    cout << ans << endl;


    return 0;
}
#include<bits/stdc++.h>
using namespace std;
signed main(){
  int n,ans=0;
  string a,b,c;
  cin >> n;
  cin >> a >> b >> c;
  for (int i = 0; i < n; i++){
    if (a[i] == b[i]){
      if (b[i] != c[i]){
        ans++;
      }
    }else if (b[i] == c[i]){
      ans++;
    }else if (a[i] == c[i]){
      ans++;
    }else{
      ans += 2;
    }
  }
  cout << ans << "\n";
}
