#include<iostream>
#include<unordered_map>
using namespace std;

int main(){
	int N;
	cin>>N;
	unordered_map<int,int> arr;
	int tmp;
	for(int i=0;i<N;++i){
		cin>>tmp;
		if(arr[tmp]==0)arr[tmp]=1;
		else arr.erase(tmp);
	}
	cout<<arr.size()<<endl;
}
