#include <bits/stdc++.h>
using namespace std;
int n,ans;map<int,int>M;
int main() {cin>>n;
	for (int i=1,x;i<=n;i++)
		cin>>x,++M[x];
	for (map<int,int>::iterator it=M.begin();it!=M.end();it++)
		if ((*it).second&1) ans++;
	cout<<ans<<endl;
	return 0; 
}