import Control.Monad
import Data.List

readInt = readLn :: IO Int
readInts = map read . words <$> getLine :: IO [Int]
readNInts = flip replicateM readInts

main :: IO ()
main = do
  _ <- getLine
  v <- readInts
  c <- readInts
  print . sum . filter (> 0) $ zipWith (-) v c