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