import Control.Monad (replicateM)
import Data.List

main :: IO ()
main = do
  n <- readLn
  as <- replicateM n $ readLn
  print $ solve as

solve :: [Int] -> Int
solve = length . filter odd . map length . group . sort
