import java.util.*;

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

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