let [| H; N |] = stdin.ReadLine().Split() |> Array.map int

let As =
    stdin.ReadLine().Split()
    |> Array.take N
    |> Array.map int
    |> Array.sum

if H - As <= 0 then "Yes"
else "No"
|> stdout.WriteLine
