fun next() = readLine()!!
fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextDouble() = next().toDouble()
fun listOfString() = next().split(" ")
fun listOfInt() =listOfString().map { it.toInt() }
fun listOfLong() =listOfString().map { it.toLong() }
fun listOfDouble() =listOfString().map { it.toDouble() }
fun main(args:Array<String>){
  var n = nextInt()
  var mp = mutableMapOf(-1 to 0)
  var cnt = 0
  for(i in 1..n){
    var tmp = nextInt()
    var x = mp[tmp]
    if(x==null){
      mp[tmp] = 1
    }else{
      mp[tmp] = x+1
    }
  }
  mp.forEach{
    if(it.value%2 == 1) cnt++
  }
  println(cnt)
}
