#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,a,ans=0;
    cin>>n;
    map<int,int>mp;
    while(cin>>a)
        mp[a]++;
    for(auto x:mp)
        ans+=x.second%2;
    cout<<ans<<endl;
}
