import qualified Data.ByteString.Char8 as B
import Control.Monad (replicateM)
import qualified Data.Set as S

main = do
  n <- readLn
  an <- replicateM n $ B.readInt <$> B.getLine
  print $ S.size $ foldl (\acc x -> if S.member x acc then S.delete x acc else S.insert x acc) S.empty an