#include <bits/stdc++.h>
using namespace std;
#define int long long

signed main() {
	int N;
	cin >> N;
	set<int>A;
	int p;
	for(int i=0;i<N;i++){
		cin >> p;
		if(A.count(p))A.erase(p);
		else A.insert(p);
	}
	cout<<A.size()<<endl;
	return 0;
}
	