var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  var hps = lines[0].split(" ").map(x => Number(x))
  var attack = lines[1].split(" ").map(x => Number(x))
  var hp = hps[0]
  var atk_cnt = attack.reduce((a,x) => a += x, 0)
  if (atk_cnt >= hp) {
    console.log("Yes")
  } else {
    console.log("No")
  }
});