import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int h = scan.nextInt();
        int n = scan.nextInt();
        int[] a = new int[n];
        int b = 0;
        for(int i = 0; i < n; i++){
            a[i] = scan.nextInt();
            b = b + a[i];
        }
        if(h > b){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int h = scan.nextInt();
        int n = scan.nextInt();
        int[] a = new int[n];
        int b = 0;
        for(int i = 0; i < n; i++){
            a[i] = scan.nextInt();
            b = b + a[i];
        }
        if(h > b){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int h = scan.nextInt();
        int n = scan.nextInt();
        int[] a = new int[n];
        int b = 0;
        for(int i = 0; i < n; i++){
            a[i] = scan.nextInt();
            b = b + a[i];
        }
        if(h > b){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } main {
        Scanner scan = new java.util.Scanner(System.in);
        int h = scan.nextInt();
        int n = scan.nextInt();
        int[] a = new int[n];
        int b = 0;
        for(int i = 0; i < n; i++){
            a[i] = scan.nextInt();
            b = b + a[i];
        }
        if(h > b){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) int h = scan.nextInt(); h scan.nextInt() scan.nextInt scan int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a = new int[n]; a new int[n] n int b = 0; b 0 for(int i = 0; i < n; i++){
            a[i] = scan.nextInt();
            b = b + a[i];
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = scan.nextInt();
            b = b + a[i];
        } {
            a[i] = scan.nextInt();
            b = b + a[i];
        } a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan b = b + a[i] b b + a[i] b a[i] a i if(h > b){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        } h > b h b {
            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){
        Scanner scan = new java.util.Scanner(System.in);
        int h = scan.nextInt();
        int n = scan.nextInt();
        int[] a = new int[n];
        int b = 0;
        for(int i = 0; i < n; i++){
            a[i] = scan.nextInt();
            b = b + a[i];
        }
        if(h > b){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int h = scan.nextInt();
        int n = scan.nextInt();
        int[] a = new int[n];
        int b = 0;
        for(int i = 0; i < n; i++){
            a[i] = scan.nextInt();
            b = b + a[i];
        }
        if(h > b){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int h = scan.nextInt();
        int n = scan.nextInt();
        int[] a = new int[n];
        int b = 0;
        for(int i = 0; i < n; i++){
            a[i] = scan.nextInt();
            b = b + a[i];
        }
        if(h > b){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}