import java.util.Scanner

object Main extends App{
  val sc = new Scanner(System.in)

  val n = sc.nextInt
  val al = Seq.fill(n)(sc.nextInt)

  val res = al.zipWithIndex.groupBy(_._1).filter(_._2.size % 2 == 1).keySet.size

  println(res)

}