import java.util.*;
class Main{
	public static void main(String[]args){
    	Scanner in = new Scanner(System.in);
      	int h = in.nextInt(), n = in.nextInt(),s=0;
      	int[] a = new int[n];
      	for(int i = 0 ; i < n ; i++){
          a[i] = in.nextInt();s+=a[i];}
      	System.out.println((s>=h)?"Yes":"No");
    }
} import java.util.*; util.* java class Main{
	public static void main(String[]args){
    	Scanner in = new Scanner(System.in);
      	int h = in.nextInt(), n = in.nextInt(),s=0;
      	int[] a = new int[n];
      	for(int i = 0 ; i < n ; i++){
          a[i] = in.nextInt();s+=a[i];}
      	System.out.println((s>=h)?"Yes":"No");
    }
} Main public static void main(String[]args){
    	Scanner in = new Scanner(System.in);
      	int h = in.nextInt(), n = in.nextInt(),s=0;
      	int[] a = new int[n];
      	for(int i = 0 ; i < n ; i++){
          a[i] = in.nextInt();s+=a[i];}
      	System.out.println((s>=h)?"Yes":"No");
    } main {
    	Scanner in = new Scanner(System.in);
      	int h = in.nextInt(), n = in.nextInt(),s=0;
      	int[] a = new int[n];
      	for(int i = 0 ; i < n ; i++){
          a[i] = in.nextInt();s+=a[i];}
      	System.out.println((s>=h)?"Yes":"No");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int h = in.nextInt() h in.nextInt() in.nextInt in n = in.nextInt() n in.nextInt() in.nextInt in s=0; s 0 int[] a = new int[n]; a new int[n] n for(int i = 0 ; i < n ; i++){
          a[i] = in.nextInt();s+=a[i];} int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
          a[i] = in.nextInt();s+=a[i];} {
          a[i] = in.nextInt();s+=a[i];} a[i] = in.nextInt() a[i] a i in.nextInt() in.nextInt in s+=a[i] s a[i] a i System.out.println((s>=h)?"Yes":"No") System.out.println System.out System System.out (s>=h)?"Yes":"No" (s>=h) s h "Yes" "No" String[]args args
import java.util.*;
class Main{
	public static void main(String[]args){
    	Scanner in = new Scanner(System.in);
      	int h = in.nextInt(), n = in.nextInt(),s=0;
      	int[] a = new int[n];
      	for(int i = 0 ; i < n ; i++){
          a[i] = in.nextInt();s+=a[i];}
      	System.out.println((s>=h)?"Yes":"No");
    }
}