open Printf
open Scanf

let solve h n =
  let s = Array.fold_left (+) 0 @@ Array.init n @@ fun _ -> scanf "%d " @@ fun x -> x in
  if h <= s then "Yes" else "No"

let () =
  scanf "%d %d " solve |> printf "%s\n"
