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