/*package whatever //do not write package name here */

import java.io.*;
import java.util.*;

public class Main {
	public static void main (String[] args) {
        Scanner sc=new Scanner(System.in);
        int h,a,i,t;
        h=sc.nextInt();
        a=sc.nextInt();
        int f=0;
        for(i=0;i<a;i++)
        {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        }
        if(f==1)
        {
            System.out.println("Yes");
        }else
        {
            System.out.println("No");
        }
        
        
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
        Scanner sc=new Scanner(System.in);
        int h,a,i,t;
        h=sc.nextInt();
        a=sc.nextInt();
        int f=0;
        for(i=0;i<a;i++)
        {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        }
        if(f==1)
        {
            System.out.println("Yes");
        }else
        {
            System.out.println("No");
        }
        
        
	}
} Main public static void main (String[] args) {
        Scanner sc=new Scanner(System.in);
        int h,a,i,t;
        h=sc.nextInt();
        a=sc.nextInt();
        int f=0;
        for(i=0;i<a;i++)
        {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        }
        if(f==1)
        {
            System.out.println("Yes");
        }else
        {
            System.out.println("No");
        }
        
        
	} main {
        Scanner sc=new Scanner(System.in);
        int h,a,i,t;
        h=sc.nextInt();
        a=sc.nextInt();
        int f=0;
        for(i=0;i<a;i++)
        {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        }
        if(f==1)
        {
            System.out.println("Yes");
        }else
        {
            System.out.println("No");
        }
        
        
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int h h a a i i t; t h=sc.nextInt() h sc.nextInt() sc.nextInt sc a=sc.nextInt() a sc.nextInt() sc.nextInt sc int f=0; f 0 for(i=0;i<a;i++)
        {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        } i=0; i=0 i 0 i<a i a i++ i++ i {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        } {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        } t=sc.nextInt() t sc.nextInt() sc.nextInt sc h-=t h t if(h<=0)
            {
                f=1;
            } h<=0 h 0 {
                f=1;
            } f=1 f 1 if(f==1)
        {
            System.out.println("Yes");
        }else
        {
            System.out.println("No");
        } f==1 f 1 {
            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" String[] args args public class Main {
	public static void main (String[] args) {
        Scanner sc=new Scanner(System.in);
        int h,a,i,t;
        h=sc.nextInt();
        a=sc.nextInt();
        int f=0;
        for(i=0;i<a;i++)
        {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        }
        if(f==1)
        {
            System.out.println("Yes");
        }else
        {
            System.out.println("No");
        }
        
        
	}
} public class Main {
	public static void main (String[] args) {
        Scanner sc=new Scanner(System.in);
        int h,a,i,t;
        h=sc.nextInt();
        a=sc.nextInt();
        int f=0;
        for(i=0;i<a;i++)
        {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        }
        if(f==1)
        {
            System.out.println("Yes");
        }else
        {
            System.out.println("No");
        }
        
        
	}
} Main
/*package whatever //do not write package name here */

import java.io.*;
import java.util.*;

public class Main {
	public static void main (String[] args) {
        Scanner sc=new Scanner(System.in);
        int h,a,i,t;
        h=sc.nextInt();
        a=sc.nextInt();
        int f=0;
        for(i=0;i<a;i++)
        {
            t=sc.nextInt();
            h-=t;
            if(h<=0)
            {
                f=1;
            }
        }
        if(f==1)
        {
            System.out.println("Yes");
        }else
        {
            System.out.println("No");
        }
        
        
	}
}