import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  
  val h = sc.nextInt
  val n = sc.nextInt
  val a = List.fill(n)(sc.nextInt)
  
  val res = if( h <= a.sum) "Yes" else "No"
  
  println(res)
}