
fun main(args: Array<String>){
    
    val n = readLine()!!.toInt()
    val A = Array(n) { readLine()!!.toLong() }

    val nums = mutableMapOf<Long,Int>()
    for (a in A){
        if (nums.containsKey(a)){
            val tmp: Int = nums.get(a)!!
            nums[a] = tmp + 1
        } else {
            nums[a] = 1
        }
    }

    var ans = 0
    for ( (k,v) in nums ) {
        if (v % 2 == 1) { ans++ }
    }

    println(ans)
}