import java.util.HashSet

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val aa = HashSet<String>(n shl 1)
    repeat(n) {
        val a = readLine()!!
        if (a in aa) {
            aa.remove(a)
        } else {
            aa.add(a)
        }
    }
    println(aa.size)
}
