import java.util.*;

public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        Integer numHP = sc.nextInt();
        Integer numHissatsu = sc.nextInt();
        sc.nextLine();
        
        int count = 0;
        int[] attackLine = new int[numHissatsu];
        while (sc.hasNext()) {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        }
        //String numAttack = sc.nextLine();
        
        sc.close();
        
        //List<String> attack = Arrays.asList(numAttack.split(""));
        
        String result = "No";
        
        for(int i = 0; i < numHissatsu; i++) {
            numHP = numHP - attackLine[i];
        }
        
        if(numHP <= 0) {
            result = "Yes";
        }
        
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        Integer numHP = sc.nextInt();
        Integer numHissatsu = sc.nextInt();
        sc.nextLine();
        
        int count = 0;
        int[] attackLine = new int[numHissatsu];
        while (sc.hasNext()) {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        }
        //String numAttack = sc.nextLine();
        
        sc.close();
        
        //List<String> attack = Arrays.asList(numAttack.split(""));
        
        String result = "No";
        
        for(int i = 0; i < numHissatsu; i++) {
            numHP = numHP - attackLine[i];
        }
        
        if(numHP <= 0) {
            result = "Yes";
        }
        
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        Integer numHP = sc.nextInt();
        Integer numHissatsu = sc.nextInt();
        sc.nextLine();
        
        int count = 0;
        int[] attackLine = new int[numHissatsu];
        while (sc.hasNext()) {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        }
        //String numAttack = sc.nextLine();
        
        sc.close();
        
        //List<String> attack = Arrays.asList(numAttack.split(""));
        
        String result = "No";
        
        for(int i = 0; i < numHissatsu; i++) {
            numHP = numHP - attackLine[i];
        }
        
        if(numHP <= 0) {
            result = "Yes";
        }
        
        System.out.println(result);
    } main {
        
        Scanner sc = new Scanner(System.in);
        
        Integer numHP = sc.nextInt();
        Integer numHissatsu = sc.nextInt();
        sc.nextLine();
        
        int count = 0;
        int[] attackLine = new int[numHissatsu];
        while (sc.hasNext()) {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        }
        //String numAttack = sc.nextLine();
        
        sc.close();
        
        //List<String> attack = Arrays.asList(numAttack.split(""));
        
        String result = "No";
        
        for(int i = 0; i < numHissatsu; i++) {
            numHP = numHP - attackLine[i];
        }
        
        if(numHP <= 0) {
            result = "Yes";
        }
        
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer numHP = sc.nextInt(); numHP sc.nextInt() sc.nextInt sc Integer numHissatsu = sc.nextInt(); numHissatsu sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc int count = 0; count 0 int[] attackLine = new int[numHissatsu]; attackLine new int[numHissatsu] numHissatsu while (sc.hasNext()) {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        } sc.hasNext() sc.hasNext sc {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        } int j = sc.nextInt(); j sc.nextInt() sc.nextInt sc attackLine[count] = j attackLine[count] attackLine count j count++ count sc.close() sc.close sc String result = "No"; result "No" for(int i = 0; i < numHissatsu; i++) {
            numHP = numHP - attackLine[i];
        } int i = 0; int i = 0; i 0 i < numHissatsu i numHissatsu i++ i++ i {
            numHP = numHP - attackLine[i];
        } {
            numHP = numHP - attackLine[i];
        } numHP = numHP - attackLine[i] numHP numHP - attackLine[i] numHP attackLine[i] attackLine i if(numHP <= 0) {
            result = "Yes";
        } numHP <= 0 numHP 0 {
            result = "Yes";
        } result = "Yes" result "Yes" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        Integer numHP = sc.nextInt();
        Integer numHissatsu = sc.nextInt();
        sc.nextLine();
        
        int count = 0;
        int[] attackLine = new int[numHissatsu];
        while (sc.hasNext()) {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        }
        //String numAttack = sc.nextLine();
        
        sc.close();
        
        //List<String> attack = Arrays.asList(numAttack.split(""));
        
        String result = "No";
        
        for(int i = 0; i < numHissatsu; i++) {
            numHP = numHP - attackLine[i];
        }
        
        if(numHP <= 0) {
            result = "Yes";
        }
        
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        Integer numHP = sc.nextInt();
        Integer numHissatsu = sc.nextInt();
        sc.nextLine();
        
        int count = 0;
        int[] attackLine = new int[numHissatsu];
        while (sc.hasNext()) {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        }
        //String numAttack = sc.nextLine();
        
        sc.close();
        
        //List<String> attack = Arrays.asList(numAttack.split(""));
        
        String result = "No";
        
        for(int i = 0; i < numHissatsu; i++) {
            numHP = numHP - attackLine[i];
        }
        
        if(numHP <= 0) {
            result = "Yes";
        }
        
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        Integer numHP = sc.nextInt();
        Integer numHissatsu = sc.nextInt();
        sc.nextLine();
        
        int count = 0;
        int[] attackLine = new int[numHissatsu];
        while (sc.hasNext()) {
            int j = sc.nextInt();
            attackLine[count] = j;
            count++;
        }
        //String numAttack = sc.nextLine();
        
        sc.close();
        
        //List<String> attack = Arrays.asList(numAttack.split(""));
        
        String result = "No";
        
        for(int i = 0; i < numHissatsu; i++) {
            numHP = numHP - attackLine[i];
        }
        
        if(numHP <= 0) {
            result = "Yes";
        }
        
        System.out.println(result);
    }
}
