import qualified Data.Map.Strict as Map
import Control.Monad

action::Map.Map Int ()->Int->Map.Map Int ()
action m i = if Map.member i m then Map.delete i m else Map.insert i () m

mult_act::Map.Map Int ()->[Int]->Map.Map Int ()
mult_act = foldl action

main::IO()
main=do
  nc<-getLine
  let n = read nc::Int
  d<-forM [1..n] (\_->getLine)
  let ls = map read d ::[Int]
  print (Map.size (mult_act Map.empty ls))