"use strict";

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

function main(input) {
  const a = input.split("\n").map(Number).slice(1);

  const map = new Map();

  a.forEach(e => {
    if(map.has(e)) {
      map.delete(e);
    } else {
      map.set(e, true);
    }
  });
  
  const ans = map.size;
  console.log(ans);
}