object Main extends App {
	val N = scala.io.StdIn.readInt
	var temp = List[Long]()

	for(i<-0 until N){
		val A = scala.io.StdIn.readLong
		if(temp.contains(A)) temp = temp.filterNot(_==A)
		else temp = A::temp
	}

	println(temp.size)
}
