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

signed main()
{
	int n; cin >> n;
    int cnt{};
	map<int, int> a{};
	while (n--)
	{
		int tmp; cin >> tmp;

		++a[tmp];
	}

	for(auto itr: a){
		cnt += itr.second % 2;
	}

	cout << cnt << endl;
	
	return 0;
}
