import java.util.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        String ans = "Yes";
        int a[] = new int[n]; 
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        }
        double sum = 0;
        for(int i = 0; i < a.length; i++){
            sum += a[i];
            //System.out.println("sum"+sum);
            
        }
        if(sum < h){
                ans = "No";
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        String ans = "Yes";
        int a[] = new int[n]; 
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        }
        double sum = 0;
        for(int i = 0; i < a.length; i++){
            sum += a[i];
            //System.out.println("sum"+sum);
            
        }
        if(sum < h){
                ans = "No";
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        String ans = "Yes";
        int a[] = new int[n]; 
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        }
        double sum = 0;
        for(int i = 0; i < a.length; i++){
            sum += a[i];
            //System.out.println("sum"+sum);
            
        }
        if(sum < h){
                ans = "No";
        }
        System.out.println(ans);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        String ans = "Yes";
        int a[] = new int[n]; 
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        }
        double sum = 0;
        for(int i = 0; i < a.length; i++){
            sum += a[i];
            //System.out.println("sum"+sum);
            
        }
        if(sum < h){
                ans = "No";
        }
        System.out.println(ans);
    } 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 String ans = "Yes"; ans "Yes" int a[] = new int[n]; a new int[n] n for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        } {
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc double sum = 0; sum 0 for(int i = 0; i < a.length; i++){
            sum += a[i];
            //System.out.println("sum"+sum);
            
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            sum += a[i];
            //System.out.println("sum"+sum);
            
        } {
            sum += a[i];
            //System.out.println("sum"+sum);
            
        } sum += a[i] sum a[i] a i if(sum < h){
                ans = "No";
        } sum < h sum h {
                ans = "No";
        } ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        String ans = "Yes";
        int a[] = new int[n]; 
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        }
        double sum = 0;
        for(int i = 0; i < a.length; i++){
            sum += a[i];
            //System.out.println("sum"+sum);
            
        }
        if(sum < h){
                ans = "No";
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        String ans = "Yes";
        int a[] = new int[n]; 
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        }
        double sum = 0;
        for(int i = 0; i < a.length; i++){
            sum += a[i];
            //System.out.println("sum"+sum);
            
        }
        if(sum < h){
                ans = "No";
        }
        System.out.println(ans);
    }
} Main
import java.util.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        String ans = "Yes";
        int a[] = new int[n]; 
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
            //System.out.println("a[i]"+a[i]);
        }
        double sum = 0;
        for(int i = 0; i < a.length; i++){
            sum += a[i];
            //System.out.println("sum"+sum);
            
        }
        if(sum < h){
                ans = "No";
        }
        System.out.println(ans);
    }
}