import scala.io._

object Main {
  def main(args: Array[String]): Unit = {
    val n: Int = readLine.toInt
    val lst =  (1 to n).map((_) => readLine.toInt).toList.sorted
    var elem = lst.head
    var count = 0
    var ans = 0
    for {
      l <- lst
    } {
      if (elem ==  l) count += 1
      else {
        ans += count % 2
        elem = l
        count = 1
      }
    }
    ans += count % 2
    println(ans)
  }
}
