'use strict';

const main = arg => {

    const input = arg.split("\n");
    const n = parseInt(input[0]);

    let freq = new Map();
    for (let i = 0; i < n; i++) {
        const a = parseInt(input[i + 1].trim());
        if (freq.has(a)) {
            freq.set(a, freq.get(a) + 1);
        } else {
            freq.set(a, 1);
        }
    }

    let count = 0;
    for (const [key, value] of freq.entries()) {
        if (value % 2 == 1) {
            count++;
        }
    }
    console.log(count);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));