import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),s=0;
		int k=in.nextInt();
		int arr[]=new int[k];
		for(int i=0;i<k;i++)
		{
			arr[i]=in.nextInt();
			s=s+arr[i];
		}
		if(s>=n)
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		}
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),s=0;
		int k=in.nextInt();
		int arr[]=new int[k];
		for(int i=0;i<k;i++)
		{
			arr[i]=in.nextInt();
			s=s+arr[i];
		}
		if(s>=n)
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),s=0;
		int k=in.nextInt();
		int arr[]=new int[k];
		for(int i=0;i<k;i++)
		{
			arr[i]=in.nextInt();
			s=s+arr[i];
		}
		if(s>=n)
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		}
	} main {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),s=0;
		int k=in.nextInt();
		int arr[]=new int[k];
		for(int i=0;i<k;i++)
		{
			arr[i]=in.nextInt();
			s=s+arr[i];
		}
		if(s>=n)
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n=in.nextInt() n in.nextInt() in.nextInt in s=0; s 0 int k=in.nextInt(); k in.nextInt() in.nextInt in int arr[]=new int[k]; arr new int[k] k for(int i=0;i<k;i++)
		{
			arr[i]=in.nextInt();
			s=s+arr[i];
		} int i=0; int i=0; i 0 i<k i k i++ i++ i {
			arr[i]=in.nextInt();
			s=s+arr[i];
		} {
			arr[i]=in.nextInt();
			s=s+arr[i];
		} arr[i]=in.nextInt() arr[i] arr i in.nextInt() in.nextInt in s=s+arr[i] s s+arr[i] s arr[i] arr i if(s>=n)
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		} s>=n s n {
			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) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),s=0;
		int k=in.nextInt();
		int arr[]=new int[k];
		for(int i=0;i<k;i++)
		{
			arr[i]=in.nextInt();
			s=s+arr[i];
		}
		if(s>=n)
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),s=0;
		int k=in.nextInt();
		int arr[]=new int[k];
		for(int i=0;i<k;i++)
		{
			arr[i]=in.nextInt();
			s=s+arr[i];
		}
		if(s>=n)
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		}
	}
} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		int n=in.nextInt(),s=0;
		int k=in.nextInt();
		int arr[]=new int[k];
		for(int i=0;i<k;i++)
		{
			arr[i]=in.nextInt();
			s=s+arr[i];
		}
		if(s>=n)
		{
			System.out.println("Yes");
		}
		else
		{
			System.out.println("No");
		}
	}
}