fun main(args: Array<String>) {

    val (N) = readInts()
    val set = mutableSetOf<Int>()

    (1 .. N).forEach {
        val i = readLine()!!.toInt()

        if (set.contains(i)) set.remove(i)
        else set.add(i)
    }

    println(set.count())
}

fun readInts(): List<Int> = readStrings().map { it.toInt() }
fun readStrings(): List<String> = readLine()!!.split(" ")