object Main {

  def main(args: Array[String]): Unit = {
    import scala.io.StdIn._

    val N = readLine().toInt
    val s = scala.collection.mutable.Set[Int]()
    (0 until N).foreach { _ =>
      val a = readInt()
      if (s.contains(a))
        s.remove(a)
      else
        s.add(a)
    }
    println(s.size)
  }

}