import Data.List
import qualified Data.ByteString.Char8 as B
import Data.Maybe (fromJust)

main :: IO ()
main = do
    as <- tail . map (fst . fromJust . B.readInt) . B.lines <$> B.getContents
    print $ sum $ map (\s -> length s `mod` 2) $ group $ sort as
