
#include <algorithm>
#include <math.h>
#include <iostream>
#include <stdio.h>
#include <string>
#include <cstdio>
#include <vector>
#include <iomanip>
using namespace::std;
#define Max(a,b) a>b?a:b;
typedef struct
{
	int eat;
	int number;
}guest;

int cmp(const void *a, const void *b)
{
	guest c = *(guest*)a;
	guest d = *(guest*)b;
	if (c.eat == d.eat)
		return c.number - d.number;
	else
		return c.eat - d.eat;
}

int main()
{
	int N,i;
	long long int a;
	int count = 0;
	cin >> N;
	static int s[100000009];
	for (i = 0; i < N; i++)
	{
		cin >> a;
		if (s[a] == 0)
			s[a] = 1, count++;
		else
			s[a] = 0, count--;
	}
	cout << count;
	
	
}