import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        String P = null;
        
        for(int i=0;i<N;i++){
            H -= sc.nextInt();
        }
        
        if(H <= 0){
            P = "Yes";
        } else {
            P = "No";
        }
        System.out.println(P);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        String P = null;
        
        for(int i=0;i<N;i++){
            H -= sc.nextInt();
        }
        
        if(H <= 0){
            P = "Yes";
        } else {
            P = "No";
        }
        System.out.println(P);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        String P = null;
        
        for(int i=0;i<N;i++){
            H -= sc.nextInt();
        }
        
        if(H <= 0){
            P = "Yes";
        } else {
            P = "No";
        }
        System.out.println(P);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        String P = null;
        
        for(int i=0;i<N;i++){
            H -= sc.nextInt();
        }
        
        if(H <= 0){
            P = "Yes";
        } else {
            P = "No";
        }
        System.out.println(P);
    } 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 P = null; P null for(int i=0;i<N;i++){
            H -= sc.nextInt();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            H -= sc.nextInt();
        } {
            H -= sc.nextInt();
        } H -= sc.nextInt() H sc.nextInt() sc.nextInt sc if(H <= 0){
            P = "Yes";
        } else {
            P = "No";
        } H <= 0 H 0 {
            P = "Yes";
        } P = "Yes" P "Yes" {
            P = "No";
        } P = "No" P "No" System.out.println(P) System.out.println System.out System System.out P String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        String P = null;
        
        for(int i=0;i<N;i++){
            H -= sc.nextInt();
        }
        
        if(H <= 0){
            P = "Yes";
        } else {
            P = "No";
        }
        System.out.println(P);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        String P = null;
        
        for(int i=0;i<N;i++){
            H -= sc.nextInt();
        }
        
        if(H <= 0){
            P = "Yes";
        } else {
            P = "No";
        }
        System.out.println(P);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        String P = null;
        
        for(int i=0;i<N;i++){
            H -= sc.nextInt();
        }
        
        if(H <= 0){
            P = "Yes";
        } else {
            P = "No";
        }
        System.out.println(P);
    }
}
