#include <stdio.h>
#include <set>
using namespace std;
set<int>s;
int main()
{
	int t,x;
	scanf("%d",&t);
	while(t--)
	{
		scanf("%d",&x);
		if(s.find(x)!=s.end()) s.erase(x);
			else s.insert(x);
	}
	printf("%d\n",s.size());
}