fun main(args: Array<String>) {
    val numN = readLine()?.orEmpty()
    val cardList = mutableListOf<Long>()
    val numList = mutableMapOf<Long,Int?>()
    for(i in 0 until numN!!.toInt()){
        val num = readLine()?.orEmpty()!!.toLong()
        if(!numList.containsKey(num)){
            numList[num] = 1
        }else{
            numList[num] = numList[num]?.plus(1)
        }
    }

    numList.forEach{
        val card = it.value
        if (card != null) {
            if(card % 2 != 0){
                cardList.add(it.key)
            }
        }
    }

    println(cardList.size)
}