import qualified Data.IntSet as S

main = do
  getLine
  ns <- map read . words <$> getContents
  print (we ns)

we = S.size . foldl (\s n -> if S.member n s then S.delete n s else S.insert n s) S.empty
