import java.util.*;
import java.util.Map.Entry;
 
 
 class Main {
	 static int mod =  (int) (Math.pow(10,9)+7);
	 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>();
    public static void main(String[] args) {
    
        Scanner sc = new Scanner(System.in);
        long H = sc.nextLong();
        int N = sc.nextInt();
        int[] a = new int[N];
        long sum=0;
        for(int i=0;i<N;i++) {
        	a[i]=sc.nextInt();
        	sum=sum+a[i];
        }
        if(H<=sum) {
    	    System.out.println("Yes");
        } else {
    	    System.out.println("No");
        }
        
		
    }
} import java.util.*; util.* java import java.util.Map.Entry; Entry java.util.Map class Main {
	 static int mod =  (int) (Math.pow(10,9)+7);
	 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>();
    public static void main(String[] args) {
    
        Scanner sc = new Scanner(System.in);
        long H = sc.nextLong();
        int N = sc.nextInt();
        int[] a = new int[N];
        long sum=0;
        for(int i=0;i<N;i++) {
        	a[i]=sc.nextInt();
        	sum=sum+a[i];
        }
        if(H<=sum) {
    	    System.out.println("Yes");
        } else {
    	    System.out.println("No");
        }
        
		
    }
} Main static int mod =  (int) (Math.pow(10,9)+7); mod (int) (Math.pow(10,9)+7) Math.pow(10,9) Math.pow Math 10 9 7 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>(); list new ArrayList<ArrayList<Integer>>() public static void main(String[] args) {
    
        Scanner sc = new Scanner(System.in);
        long H = sc.nextLong();
        int N = sc.nextInt();
        int[] a = new int[N];
        long sum=0;
        for(int i=0;i<N;i++) {
        	a[i]=sc.nextInt();
        	sum=sum+a[i];
        }
        if(H<=sum) {
    	    System.out.println("Yes");
        } else {
    	    System.out.println("No");
        }
        
		
    } main {
    
        Scanner sc = new Scanner(System.in);
        long H = sc.nextLong();
        int N = sc.nextInt();
        int[] a = new int[N];
        long sum=0;
        for(int i=0;i<N;i++) {
        	a[i]=sc.nextInt();
        	sum=sum+a[i];
        }
        if(H<=sum) {
    	    System.out.println("Yes");
        } else {
    	    System.out.println("No");
        }
        
		
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long H = sc.nextLong(); H sc.nextLong() sc.nextLong sc int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] a = new int[N]; a new int[N] N long sum=0; sum 0 for(int i=0;i<N;i++) {
        	a[i]=sc.nextInt();
        	sum=sum+a[i];
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        	a[i]=sc.nextInt();
        	sum=sum+a[i];
        } {
        	a[i]=sc.nextInt();
        	sum=sum+a[i];
        } a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc sum=sum+a[i] sum sum+a[i] sum a[i] a i if(H<=sum) {
    	    System.out.println("Yes");
        } else {
    	    System.out.println("No");
        } H<=sum H sum {
    	    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
import java.util.*;
import java.util.Map.Entry;
 
 
 class Main {
	 static int mod =  (int) (Math.pow(10,9)+7);
	 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>();
    public static void main(String[] args) {
    
        Scanner sc = new Scanner(System.in);
        long H = sc.nextLong();
        int N = sc.nextInt();
        int[] a = new int[N];
        long sum=0;
        for(int i=0;i<N;i++) {
        	a[i]=sc.nextInt();
        	sum=sum+a[i];
        }
        if(H<=sum) {
    	    System.out.println("Yes");
        } else {
    	    System.out.println("No");
        }
        
		
    }
}