#include <iostream>
#include <cstdio>
#include <bitset>
using namespace std;

int n, a;
bitset<1<<30> v;
int main()
{
	cin >> n;
	while(n--) {
		scanf ("%d", &a);
		v[a] = !v[a];
	}
	cout << v.count();
    return 0;
}
