let n = Scanf.scanf " %d" (+) 0
let vcs = Array.init 2 @@ fun _ -> Array.init n @@ fun _ -> Scanf.scanf " %d" (+) 0
let _ = Array.mapi (fun i v -> max 0 @@ v - vcs.(1).(i)) vcs.(0) |> Array.fold_left (+) 0 |> Printf.printf "%d\n"