object Main extends App {
  val n = scala.io.StdIn.readInt()
  val ns = (1 to n).map(_ => scala.io.StdIn.readLong()).sorted.toList.map((_,1l))
  println(group(ns).filter(_._2%2 != 0).length)
  
  def group(l: List[(Long, Long)]): List[(Long, Long)] = l match {
    case x::y::l => if (x._1 == y._1) { group((x._1, x._2+y._2)::l) } else { x :: group(y::l) }
    case l       => l
  }
}
