import io.StdIn._
object Main extends App {
    val n = readInt
    val as = for(_ <- 1 to n) yield readInt

    // どうせTLE
    val filtered = as.filter(a => as.count(_ == a)%2==1)
    println(filtered.length)
}