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
		temp = A::temp
	}

	val temp2 = sort(temp).toArray

	var i = 0
	var sum = 0

	while(i < N){
		val f = temp2(i)
		var t = 1
		i = i + 1
		while(i < N && f == temp2(i)){
			t = t + 1
			i = i + 1
		}
		sum = sum + t%2
	}

	println(sum)

	def sort(x: List[Long]): List[Long] = {
		x match {
			case Nil => List[Long]()
			case r::Nil => List(r)
			case r::rest =>{
				val temp = rest.toArray
				var right = List(r)
				var left = List[Long]()

				for(i<-0 until rest.size){
					if(temp(i) > r) right = temp(i)::right
					else left = temp(i)::left
				}

				sort(left):::sort(right)
			}
		}
	}

}