import java.util.*;

public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int hitPoint = sc.nextInt();
    int attackCount = sc.nextInt();
    
    int list[] = new int[attackCount];
    int damage = 0;
    for(int i =0; i < attackCount; ++i){
      list[i] = sc.nextInt();
      damage  += list[i];      
    }
    
    if(hitPoint <= damage){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }   
  }  
} import java.util.*; util.* java public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int hitPoint = sc.nextInt();
    int attackCount = sc.nextInt();
    
    int list[] = new int[attackCount];
    int damage = 0;
    for(int i =0; i < attackCount; ++i){
      list[i] = sc.nextInt();
      damage  += list[i];      
    }
    
    if(hitPoint <= damage){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }   
  }  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int hitPoint = sc.nextInt();
    int attackCount = sc.nextInt();
    
    int list[] = new int[attackCount];
    int damage = 0;
    for(int i =0; i < attackCount; ++i){
      list[i] = sc.nextInt();
      damage  += list[i];      
    }
    
    if(hitPoint <= damage){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }   
  } main {
    Scanner sc = new Scanner(System.in);
    
    int hitPoint = sc.nextInt();
    int attackCount = sc.nextInt();
    
    int list[] = new int[attackCount];
    int damage = 0;
    for(int i =0; i < attackCount; ++i){
      list[i] = sc.nextInt();
      damage  += list[i];      
    }
    
    if(hitPoint <= damage){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }   
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int hitPoint = sc.nextInt(); hitPoint sc.nextInt() sc.nextInt sc int attackCount = sc.nextInt(); attackCount sc.nextInt() sc.nextInt sc int list[] = new int[attackCount]; list new int[attackCount] attackCount int damage = 0; damage 0 for(int i =0; i < attackCount; ++i){
      list[i] = sc.nextInt();
      damage  += list[i];      
    } int i =0; int i =0; i 0 i < attackCount i attackCount ++i ++i i {
      list[i] = sc.nextInt();
      damage  += list[i];      
    } {
      list[i] = sc.nextInt();
      damage  += list[i];      
    } list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc damage  += list[i] damage list[i] list i if(hitPoint <= damage){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    } hitPoint <= damage hitPoint damage {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int hitPoint = sc.nextInt();
    int attackCount = sc.nextInt();
    
    int list[] = new int[attackCount];
    int damage = 0;
    for(int i =0; i < attackCount; ++i){
      list[i] = sc.nextInt();
      damage  += list[i];      
    }
    
    if(hitPoint <= damage){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }   
  }  
} public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int hitPoint = sc.nextInt();
    int attackCount = sc.nextInt();
    
    int list[] = new int[attackCount];
    int damage = 0;
    for(int i =0; i < attackCount; ++i){
      list[i] = sc.nextInt();
      damage  += list[i];      
    }
    
    if(hitPoint <= damage){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }   
  }  
} Main
import java.util.*;

public class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int hitPoint = sc.nextInt();
    int attackCount = sc.nextInt();
    
    int list[] = new int[attackCount];
    int damage = 0;
    for(int i =0; i < attackCount; ++i){
      list[i] = sc.nextInt();
      damage  += list[i];      
    }
    
    if(hitPoint <= damage){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }   
  }  
}