#include<iostream>
#include<map>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<set> 
#include<stack>
using namespace std;

map<int,int> mp;
int main(){
int n;
cin>>n;
for(int i=0;i<n;i++)
{   int temp;
    cin>>temp;
	if(mp.find(temp)==mp.end())
    mp[temp]=1;
    else if(mp[temp]==0)
    mp[temp]=1;
    else if(mp[temp]==1)
    mp[temp]=0; 
}
int count=0;
for(map<int,int>::iterator it=mp.begin();it!=mp.end();it++)
{
	if(it->second==1)
	count++; 
}
cout<<count;
return 0;
}