#include<map>
#include<iostream>
#include<algorithm>
using namespace std;
map<int,int>t;
int n,a,s;
int main(){
    cin>>n;
    while(cin>>a){
        s+=t[a]*-2+1;
        t[a]=!t[a];
    }
    cout<<s<<endl;
}