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

int main()
{
	int count;
	scanf("%d", &count);
	hash_set<int> s;
	for (int i = 0; i < count; i++)
	{
		int tmp;
		scanf("%d", &tmp);
		hash_set<int>::iterator it = s.find(tmp);
		if (it != s.end())s.erase(it);
		else {
			s.insert(tmp);
		}
	}
	printf("%d",s.size());
}