let N = stdin.ReadLine() |> int
let V = stdin.ReadLine().Split() |> Array.map int
let C = stdin.ReadLine().Split() |> Array.map int

let a = List.map (fun i -> max (V.[i] - C.[i]) 0) [0..N-1] |> List.sum
printfn "%A" a
