readInt :: String -> Integer readInt = read main = do _ <- getLine xs <- fmap (map readInt . words) getLine print $ abs . sum $ map (\x -> if x `mod` 2 == 0 then 1 else -1) xs