let () =
  let n = Scanf.scanf "%d\n" (fun n -> n) in
  let as_ = Array.to_list @@ Array.init n (fun _ -> Scanf.scanf "%d " (fun a -> a)) in
  let bs = Array.to_list @@ Array.init n (fun _ -> Scanf.scanf "%d " (fun b -> b)) in
  List.fold_left2 (fun (as_, bs) a b ->
    if a <= b then (as_, bs + (b - a) / 2)
    else (as_ + a - b, bs)) (0, 0) as_ bs
  |> (fun (as_, bs) -> as_ <= bs)
  |> (function true -> "Yes" | false -> "No")
  |> print_endline
