fun main(args: Array<String>) {
    val n = readLine()?.toInt() ?: return
    val counter = hashMapOf<Int, Boolean>()
    repeat(n) {
        val a = readLine()?.toInt() ?: return
        if (counter.containsKey(a)) {
            counter[a] = !counter[a]!!
        } else {
            counter[a] = true
        }
    }
    println(counter.count { it.value }.toString())
}