let () =
	let n = Scanf.scanf "%d\n" (fun x -> x) in
	let v = Array.to_list (Array.init n (fun _ -> Scanf.scanf "%d " (fun x -> x))) in
	let  c = Array.to_list (Array.init n (fun _ -> Scanf.scanf "%d " (fun x -> x))) in
	let sabun = List.map2 (fun a b -> a -b) v c in
	List.fold_left (fun a b -> if b > 0 then a + b else a) 0 sabun
	|> print_int
