import java.util.*;
import java.lang.Math;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		
      	int h = sc.nextInt();
      	int n = sc.nextInt();
      	int dm = 0;
      	String str = "No";
      
      	for(int i = 0;i < n && h > 0;i++) {
			h -= sc.nextInt();        
        }
      	
      	if(h <= 0) str = "Yes";      	
      	
      	System.out.println(str);
        
	}
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		
      	int h = sc.nextInt();
      	int n = sc.nextInt();
      	int dm = 0;
      	String str = "No";
      
      	for(int i = 0;i < n && h > 0;i++) {
			h -= sc.nextInt();        
        }
      	
      	if(h <= 0) str = "Yes";      	
      	
      	System.out.println(str);
        
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		
      	int h = sc.nextInt();
      	int n = sc.nextInt();
      	int dm = 0;
      	String str = "No";
      
      	for(int i = 0;i < n && h > 0;i++) {
			h -= sc.nextInt();        
        }
      	
      	if(h <= 0) str = "Yes";      	
      	
      	System.out.println(str);
        
	} main {
		Scanner sc = new Scanner(System.in);

  		
      	int h = sc.nextInt();
      	int n = sc.nextInt();
      	int dm = 0;
      	String str = "No";
      
      	for(int i = 0;i < n && h > 0;i++) {
			h -= sc.nextInt();        
        }
      	
      	if(h <= 0) str = "Yes";      	
      	
      	System.out.println(str);
        
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int dm = 0; dm 0 String str = "No"; str "No" for(int i = 0;i < n && h > 0;i++) {
			h -= sc.nextInt();        
        } int i = 0; int i = 0; i 0 i < n && h > 0 i < n i n h > 0 h 0 i++ i++ i {
			h -= sc.nextInt();        
        } {
			h -= sc.nextInt();        
        } h -= sc.nextInt() h sc.nextInt() sc.nextInt sc if(h <= 0) str = "Yes"; h <= 0 h 0 str = "Yes" str "Yes" System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		
      	int h = sc.nextInt();
      	int n = sc.nextInt();
      	int dm = 0;
      	String str = "No";
      
      	for(int i = 0;i < n && h > 0;i++) {
			h -= sc.nextInt();        
        }
      	
      	if(h <= 0) str = "Yes";      	
      	
      	System.out.println(str);
        
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		
      	int h = sc.nextInt();
      	int n = sc.nextInt();
      	int dm = 0;
      	String str = "No";
      
      	for(int i = 0;i < n && h > 0;i++) {
			h -= sc.nextInt();        
        }
      	
      	if(h <= 0) str = "Yes";      	
      	
      	System.out.println(str);
        
	}
} Main
import java.util.*;
import java.lang.Math;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		
      	int h = sc.nextInt();
      	int n = sc.nextInt();
      	int dm = 0;
      	String str = "No";
      
      	for(int i = 0;i < n && h > 0;i++) {
			h -= sc.nextInt();        
        }
      	
      	if(h <= 0) str = "Yes";      	
      	
      	System.out.println(str);
        
	}
}
