object Main extends App {
  val n = readInt
  val a = (1 to n).map{_ => readInt}
  
  var m = Map[Int,Boolean]()
  
  for (i <- 0 until n) {
    m.get(a(i)) match {
      case Some(v) => m = m.updated(a(i),!v)
      case None => m = m.updated(a(i),true)
    }
  }
  
  println(m.values.count{_ == true})
}