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

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