function Main(input) {
  input = input.split("\n");
  var M = input[0].split(" ").map(Number);
  var N = input[1].split(" ").map(Number);
  N.sort(function(a,b){return a-b;});
  var sum = 0;
  for(var i=0;i<M[1];i++){
  sum += N[N.length-1-i];
  }
  if(sum>=M[0]) console.log("Yes");
  else console.log("No")
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));