#include <cstdio>
#include <algorithm>
using std::sort;

bool mp[100010] = { false };
int main()
{
	int n, id;
	scanf("%d", &n);
	int cnt = 0;
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &id);
		if (mp[id] == false)
		{
			mp[id] = true;
			cnt++;
		}
		else
		{
			mp[id] = false;
			cnt--;
		}
	}
	printf("%d", cnt);
	return 0;
}