import java.util.*;

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

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