fun main(args: Array<String>) {
  val sc = if (args.size > 1) java.util.Scanner(java.io.File(args[1])) else java.util.Scanner(System.`in`)
  solve(sc)
}

fun solve(sc: java.util.Scanner) {
  val A = IntArray(sc.nextInt()) { sc.nextInt() }
  val a = mutableSetOf<Int>()
  A.forEach {
    if (a.contains(it)) {
      a.remove(it)
    } else {
      a.add(it)
    }
  }
  println(a.count())
}
