log = console.log;

var stdin = require("fs").readFileSync("/dev/stdin", "UTF-8");
var lines = stdin.split("\n");
var N = lines[0].split(" ").map(Number)[0];
var A = lines
  .slice(1)
  .filter(v => v !== "");

A.sort((a,b)=> a-b)

var count = 0;
var tmp = false;
A.forEach((v,i,a)=>{
    if(i===0) return
    if(a[i] === a[i-1]){
      tmp = !tmp
    }else {
      if(!tmp) count += 1
      tmp = false
    }
})
if(!tmp) count += 1

log(count)