fun main(args: Array<String>) {
    val N = readLine()!!.toLong()

    val set = mutableSetOf<Int>()
    for (i in 0 until N) {
        val r = readLine()!!.toInt()

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

    println(set.size)
}