import std.string;
import std.conv;
import std.algorithm;
import std.stdio;
 
void main() {
  int hp = readln.chomp.split(" ")[0].to!int;  

  foreach (e;readln.chomp.split(" ").map!(to!int)) {
    hp -= e;
    if (hp <= 0) {
      writeln("Yes");
      return;
    }
  }

  writeln("No");
}
