private fun readInts() = readLine()!!.split(" ").map { it.toInt() }

fun main(args: Array<String>) {
    val N = readLine()!!.toInt()
    val A = (0 until N).map { readLine()!!.toInt() }

    val set = mutableSetOf<Int>()
    A.forEach { a ->
        if (a in set) set.remove(a)
        else set.add(a)
    }

    println(A.toSet().filter { it in set }.size)
}