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();
        int i = 0;
        do {
          h -= sc.nextInt();
          i++;
        } while (i<n && h>0);
        if (h>0){
          System.out.println("No");
        } else {
          System.out.println("Yes");
        }
        
    }
} 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();
        int i = 0;
        do {
          h -= sc.nextInt();
          i++;
        } while (i<n && h>0);
        if (h>0){
          System.out.println("No");
        } else {
          System.out.println("Yes");
        }
        
    }
} 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();
        int i = 0;
        do {
          h -= sc.nextInt();
          i++;
        } while (i<n && h>0);
        if (h>0){
          System.out.println("No");
        } else {
          System.out.println("Yes");
        }
        
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        int i = 0;
        do {
          h -= sc.nextInt();
          i++;
        } while (i<n && h>0);
        if (h>0){
          System.out.println("No");
        } else {
          System.out.println("Yes");
        }
        
    } 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 int i = 0; i 0 do {
          h -= sc.nextInt();
          i++;
        } while (i<n && h>0); i<n && h>0 i<n i n h>0 h 0 {
          h -= sc.nextInt();
          i++;
        } h -= sc.nextInt() h sc.nextInt() sc.nextInt sc i++ i if (h>0){
          System.out.println("No");
        } else {
          System.out.println("Yes");
        } h>0 h 0 {
          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) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        int i = 0;
        do {
          h -= sc.nextInt();
          i++;
        } while (i<n && h>0);
        if (h>0){
          System.out.println("No");
        } else {
          System.out.println("Yes");
        }
        
    }
} 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();
        int i = 0;
        do {
          h -= sc.nextInt();
          i++;
        } while (i<n && h>0);
        if (h>0){
          System.out.println("No");
        } else {
          System.out.println("Yes");
        }
        
    }
} 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();
        int i = 0;
        do {
          h -= sc.nextInt();
          i++;
        } while (i<n && h>0);
        if (h>0){
          System.out.println("No");
        } else {
          System.out.println("Yes");
        }
        
    }
}
