fun main(arg: Array<String>) {
    val N = nextInt()
    val M = java.util.HashSet<Int>()
    repeat(N) {
        val a = nextInt()
        if (M.contains(a)) M.remove(a)
        else M.add(a)
    }
    var ans = M.size
    println(ans)
}
fun next() = readLine()!!
fun nextInt(delta: Int = 0) = Integer.parseInt(next()) + delta
