import java.util.*


fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)

    var N: Long
    N = sc.nextLong()
    val A = Array((N).toInt()){0L}
    for (i in 0 until N) {
        A[(i).toInt()] = sc.nextLong()
    }
    solve(N, A)
}

fun solve(N: Long, A: Array<Long>) {
    val s = HashSet<Long>()

    A.forEach {
        if (s.contains(it)) {
            s.remove(it)
        } else {
            s.add(it)
        }
    }

    println(s.size)
}

