

fun main(arr:Array<String>) {
    val numberCount = readLine()!!.toInt()
    val list = (1..numberCount).map { readLine()!!.toInt() }
    val count = mutableMapOf<Int, Int>()
    list.forEach { if(count.containsKey(it)) {count[it] = count[it]!! + 1} else {count[it] = 1} }
    val ans = count.filter { it.value % 2 != 0 }.size
    println(ans)

}
