"use strict";
    
const main = arg => {
    arg = arg.split("\n");
    const N = parseInt(arg[0]);
    const A = arg.slice(1, N + 1);
    
    const set  = new Set(A);
    const uniq = [...set];
    
    let cnt = 0;
    
    for(let i in uniq) {
        if(A.filter(n=>n === uniq[i]).length % 2 !== 0) {
            cnt++;
        }
    }
    
    console.log(cnt);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));