"use strict";

function Main(input) {
  let lines = input.trim().split("\n");
  let monstarInfo = lines[0].split(" ").map(x => x - 0);
  let monsterPower = monstarInfo[0];
  let attackNum = monstarInfo[1];
  let araInfo = lines[1].split(" ").map(x => x - 0).sort().reverse();
  let ans = "No";
  let sum = 0;
  for(let i = 0; i < attackNum; i++){
    sum += araInfo[i];
   	if( sum  >= monsterPower){
      ans = 'Yes';
      break;
  	}
  }
  console.log(ans);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
