import std.stdio;
 
void main() {
  int hp, n;
  readf(" %s %s", &hp, &n);
  
  foreach (i;0..n) {
    int a;
    readf(" %s", &a);
    hp -= a;
    if (hp <= 0) {
      writeln("Yes");
      return;
    }
  }
  writeln("No");
}
