fun main(args : Array<String>) {
    val n = readLine()!!.toInt()
    val aa = mutableMapOf<Int, Int>()

    repeat(n) {
        val a = readLine()!!.toInt()
        aa[a] = aa[a]?.plus(1) ?: 1
    }

    println(aa.count { it.value % 2 == 1 })
}