object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val monsterHP = sc.nextInt()
    val araigumaAttackKinds = sc.nextInt()
    val araigumaAttackPoints = Array.fill(araigumaAttackKinds)(sc.nextInt())

    val attackPointSum = araigumaAttackPoints.sum

    val ans = if (attackPointSum >= monsterHP) "Yes" else "No"

    println(ans)
  }
}
