    #include <bits/stdc++.h>
    using namespace std;
    #define LL long long
    #define Max(a,b) ((a)>(b)?(a):(b)) 
    #define Min(a,b) ((a)<(b)?(a):(b)) 
     
    //FILE *fp,*fp2;
    //fp=fopen("input.txt","r");
    //fp2=fopen("output.txt","w");
     
    int main()
    {
        int n;
        set<LL int> num;
        set<LL int>::iterator it;
        cin>>n;
        LL int x;
        while(n--)
        {
            cin>>x;
            it=num.find(x);
            if (it ==num.end())
            {
                num.insert(x);
            }
            else
            {
                num.erase(it);
            }
        }
        x=num.size();
        cout<<x<<endl;
        
        return 0;
    }
     