import scala.collection.mutable
import java.io.{BufferedReader, InputStreamReader}

object Main extends App {
  val in = new BufferedReader(new InputStreamReader(System.in))
  val map = mutable.HashMap[Int,Int]()
  val n = in.readLine.toInt
  Iterator.continually(in.readLine)
    .take(n)
    .map(_.toInt)
    .foreach(e => {
      if(!map.contains(e)) map += e -> 1
      else map(e) += 1
    })

  val ans = map.count(e => (e._2&1)==1)

  println(ans)
}