import Data.List main = do getLine getLine >>= print . (\(a,b) -> abs(length a - length b)) . partition odd . map read . words