[<AutoOpen>]
module Program

open System

let read f = stdin.ReadLine() |> f
let reads f = stdin.ReadLine().Split() |> Array.toList |> List.map f

[<EntryPoint>]
let main argv =
    let n = read int
    let vs = reads int
    let cs = reads int
    List.fold2 (fun s v c -> if v - c > 0 then s + (v - c) else s) 0 vs cs
    |> printfn "%i"
    0