import Control.Monad
import qualified Data.IntSet as S
import Control.Monad.Trans.State
 
main :: IO ()
main = do
  n <- readLn
  as <- replicateM n readLn
  print $ evalState (solve as) S.empty
 
solve :: Int -> State (S.IntSet) Int
solve [] = S.size <$> get
solve (a:as) = do
  s <- get
  put $ if a `S.member` s
    then S.delete a s
    else S.insert a s
  solve as