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