fun main(args: Array<String>) {
    val n = readInt()
    val a = List(n) { readInt() }

    val c = mutableSetOf<Int>()
    var ans = 0
    a.forEach {
        if (c.contains(it)) {
            c.remove(it)
            ans--
        } else {
            c.add(it)
            ans++
        }
    }
    println(ans)
}

// Tools
fun readString() = readLine()!!
fun readInt() = readLine()!!.toInt()