open Batteries;;
  
let () =
  let _ = read_line () in
  let la = read_line () |> String.split_on_char ' ' |> List.map int_of_string in
  let lb = read_line () |> String.split_on_char ' ' |> List.map int_of_string in
  let rec diff la lb =
    match la, lb with
    | [], [] -> []
    | hda :: resta, hdb :: restb ->
       (hda - hdb) :: diff resta restb
    | _ -> []
  in
  let l = diff la lb in
  let sum = List.fold_left (+) 0 l in
  let ans = if sum >= 0 then "No"
            else "Yes" in

  print_string ans
;;
        
  
       
