object Main extends App {
  val s = new java.util.Scanner(System.in)
  val n = s.next().toInt
  val ns = (1 to n).map(_ => s.next().toLong).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
  }
}
