import io.StdIn._
object Main extends App {
    val n = readInt
    val as = for(_ <- 1 to n) yield readInt

    def rec(index: Int, acc: Map[Int, Int]): Map[Int, Int] = {
        if(n-1 < index) return acc
        else {
            val a = as(index)
            acc.get(a) match {
                case Some(value) =>  rec(index+1, acc.updated(a, value+1))
                case None        =>  rec(index+1, acc+(a -> 1))
            }
        }
    }

    val map = rec(0, Map.empty)
    println(map.values.count(_%2==1))
}