#include<stdio.h>
using namespace std;

const int maxn = 1000000000;

struct {
    int id;   
    int flag; 
}Game[maxn];

int main()
{
    int num;   
    scanf("%d", &num);
    for (int i = 0; i < maxn; i++)
        Game[i].flag = 0;

    for (int i = 0; i < num; i++) {
        int a;
        scanf("%d", &a);
        Game[a].flag = 1-Game[a].flag;
    }

    int noc = 0;
    for (int i = 0; i < maxn; i++)
        if (Game[i].flag == 1)
            noc++;
    printf("%d", noc);

    return 0;
}
