
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
 
	public static void main(String[] args) {
 
		    Scanner scanner = new Scanner(System.in);
		    
		    int H = scanner.nextInt();
		    int N = scanner.nextInt();
		    int sum=0;
		    List<Integer> list = new ArrayList<Integer>();
		    for(int i=0;i<N;i++){
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    }
		     Collections.sort(list);
		    		 
		    if(H>sum) {
			    System.out.println("No");
		    	
		    }else {
	    	 System.out.println("Yes");
		    }
		  }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
 
	public static void main(String[] args) {
 
		    Scanner scanner = new Scanner(System.in);
		    
		    int H = scanner.nextInt();
		    int N = scanner.nextInt();
		    int sum=0;
		    List<Integer> list = new ArrayList<Integer>();
		    for(int i=0;i<N;i++){
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    }
		     Collections.sort(list);
		    		 
		    if(H>sum) {
			    System.out.println("No");
		    	
		    }else {
	    	 System.out.println("Yes");
		    }
		  }
} Main public static void main(String[] args) {
 
		    Scanner scanner = new Scanner(System.in);
		    
		    int H = scanner.nextInt();
		    int N = scanner.nextInt();
		    int sum=0;
		    List<Integer> list = new ArrayList<Integer>();
		    for(int i=0;i<N;i++){
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    }
		     Collections.sort(list);
		    		 
		    if(H>sum) {
			    System.out.println("No");
		    	
		    }else {
	    	 System.out.println("Yes");
		    }
		  } main {
 
		    Scanner scanner = new Scanner(System.in);
		    
		    int H = scanner.nextInt();
		    int N = scanner.nextInt();
		    int sum=0;
		    List<Integer> list = new ArrayList<Integer>();
		    for(int i=0;i<N;i++){
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    }
		     Collections.sort(list);
		    		 
		    if(H>sum) {
			    System.out.println("No");
		    	
		    }else {
	    	 System.out.println("Yes");
		    }
		  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int H = scanner.nextInt(); H scanner.nextInt() scanner.nextInt scanner int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int sum=0; sum 0 List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for(int i=0;i<N;i++){
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    } {
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    } list.add(i,scanner.nextInt()) list.add list i scanner.nextInt() scanner.nextInt scanner sum = sum + list.get(i) sum sum + list.get(i) sum list.get(i) list.get list i Collections.sort(list) Collections.sort Collections list if(H>sum) {
			    System.out.println("No");
		    	
		    }else {
	    	 System.out.println("Yes");
		    } H>sum H sum {
			    System.out.println("No");
		    	
		    } System.out.println("No") System.out.println System.out System System.out "No" {
	    	 System.out.println("Yes");
		    } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
 
	public static void main(String[] args) {
 
		    Scanner scanner = new Scanner(System.in);
		    
		    int H = scanner.nextInt();
		    int N = scanner.nextInt();
		    int sum=0;
		    List<Integer> list = new ArrayList<Integer>();
		    for(int i=0;i<N;i++){
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    }
		     Collections.sort(list);
		    		 
		    if(H>sum) {
			    System.out.println("No");
		    	
		    }else {
	    	 System.out.println("Yes");
		    }
		  }
} public class Main {
 
	public static void main(String[] args) {
 
		    Scanner scanner = new Scanner(System.in);
		    
		    int H = scanner.nextInt();
		    int N = scanner.nextInt();
		    int sum=0;
		    List<Integer> list = new ArrayList<Integer>();
		    for(int i=0;i<N;i++){
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    }
		     Collections.sort(list);
		    		 
		    if(H>sum) {
			    System.out.println("No");
		    	
		    }else {
	    	 System.out.println("Yes");
		    }
		  }
} Main

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
 
	public static void main(String[] args) {
 
		    Scanner scanner = new Scanner(System.in);
		    
		    int H = scanner.nextInt();
		    int N = scanner.nextInt();
		    int sum=0;
		    List<Integer> list = new ArrayList<Integer>();
		    for(int i=0;i<N;i++){
		    	list.add(i,scanner.nextInt());
		    	sum = sum + list.get(i);
		    }
		     Collections.sort(list);
		    		 
		    if(H>sum) {
			    System.out.println("No");
		    	
		    }else {
	    	 System.out.println("Yes");
		    }
		  }
}
