#include<iostream>
#include<stdio.h>
#include<string.h>
#include<queue>
#include<set>
#include<algorithm>
typedef long long ll;
#define INT 0x4f4f4f4f
using namespace std;
inline long long read()
{
    long long x=0,f=1;char a=getchar();
    while(a<48||a>57){if(a=='-')f=-f;a=getchar();}
    while(a>47&&a<58){x=10*x+(a-48);a=getchar();}
    return f*x;
}

int main()
{
    std::ios::sync_with_stdio(false);
    int n;
    cin>>n;
    set<int>a;
    int x;
    while(n--)
    {
        cin>>x;
        if(a.count(x))
            a.erase(x);
        else
            a.insert(x);
    }
    printf("%d",a.size());
    return 0;
}
