main :: IO () main = getLine >> getLine >>= print . abs . sum . map (\x -> if odd x then -1 else 1) . map read . words