/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int n = sc.nextInt();
		long sum = 0;
		for(int i=0;i<n;++i){
			sum+=sc.nextInt();
		}
		if(sum >= h) System.out.print("Yes");
		else System.out.print("No");
		
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int n = sc.nextInt();
		long sum = 0;
		for(int i=0;i<n;++i){
			sum+=sc.nextInt();
		}
		if(sum >= h) System.out.print("Yes");
		else System.out.print("No");
		
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int n = sc.nextInt();
		long sum = 0;
		for(int i=0;i<n;++i){
			sum+=sc.nextInt();
		}
		if(sum >= h) System.out.print("Yes");
		else System.out.print("No");
		
	} main {
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int n = sc.nextInt();
		long sum = 0;
		for(int i=0;i<n;++i){
			sum+=sc.nextInt();
		}
		if(sum >= h) System.out.print("Yes");
		else System.out.print("No");
		
	} 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 long sum = 0; sum 0 for(int i=0;i<n;++i){
			sum+=sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n ++i ++i i {
			sum+=sc.nextInt();
		} {
			sum+=sc.nextInt();
		} sum+=sc.nextInt() sum sc.nextInt() sc.nextInt sc if(sum >= h) System.out.print("Yes");
		else System.out.print("No"); sum >= h sum h System.out.print("Yes") System.out.print System.out System System.out "Yes" System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int n = sc.nextInt();
		long sum = 0;
		for(int i=0;i<n;++i){
			sum+=sc.nextInt();
		}
		if(sum >= h) System.out.print("Yes");
		else System.out.print("No");
		
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int n = sc.nextInt();
		long sum = 0;
		for(int i=0;i<n;++i){
			sum+=sc.nextInt();
		}
		if(sum >= h) System.out.print("Yes");
		else System.out.print("No");
		
	}
} Main
/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int n = sc.nextInt();
		long sum = 0;
		for(int i=0;i<n;++i){
			sum+=sc.nextInt();
		}
		if(sum >= h) System.out.print("Yes");
		else System.out.print("No");
		
	}
}