import java.util.*
 
fun main(args: Array<String>) {
 
  val sc = Scanner(System.`in`)
  val h = sc.nextInt()
  val n = sc.nextInt()
  val arrayList = ArrayList<Int>()
  (1..n).forEach {
    val a = sc.nextInt()
    arrayList.add(a)
  }
  
  val reduced = arrayList.reduce { acc, value ->
     acc + value                            
  }
  
  println(if(reduced >= h) "Yes" else "No")
}