import java.util.ArrayList;

import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
	
		Scanner scn=new Scanner(System.in);
		ArrayList<Long> list=new ArrayList<>();
		
		long x=scn.nextInt();
		long t=scn.nextInt();
		
		for(int i=0;i<t;i++) {
			
			long y=scn.nextLong();
			list.add(y);
		}
		
		long s=0;
		for(Long i:list) {
			s=s+i;
		}
		
		if(s>=x) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		scn.close();
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
	
		Scanner scn=new Scanner(System.in);
		ArrayList<Long> list=new ArrayList<>();
		
		long x=scn.nextInt();
		long t=scn.nextInt();
		
		for(int i=0;i<t;i++) {
			
			long y=scn.nextLong();
			list.add(y);
		}
		
		long s=0;
		for(Long i:list) {
			s=s+i;
		}
		
		if(s>=x) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		scn.close();
	}
} Main public static void main(String[] args) {
	
		Scanner scn=new Scanner(System.in);
		ArrayList<Long> list=new ArrayList<>();
		
		long x=scn.nextInt();
		long t=scn.nextInt();
		
		for(int i=0;i<t;i++) {
			
			long y=scn.nextLong();
			list.add(y);
		}
		
		long s=0;
		for(Long i:list) {
			s=s+i;
		}
		
		if(s>=x) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		scn.close();
	} main {
	
		Scanner scn=new Scanner(System.in);
		ArrayList<Long> list=new ArrayList<>();
		
		long x=scn.nextInt();
		long t=scn.nextInt();
		
		for(int i=0;i<t;i++) {
			
			long y=scn.nextLong();
			list.add(y);
		}
		
		long s=0;
		for(Long i:list) {
			s=s+i;
		}
		
		if(s>=x) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		scn.close();
	} Scanner scn=new Scanner(System.in); scn new Scanner(System.in) ArrayList<Long> list=new ArrayList<>(); list new ArrayList<>() long x=scn.nextInt(); x scn.nextInt() scn.nextInt scn long t=scn.nextInt(); t scn.nextInt() scn.nextInt scn for(int i=0;i<t;i++) {
			
			long y=scn.nextLong();
			list.add(y);
		} int i=0; int i=0; i 0 i<t i t i++ i++ i {
			
			long y=scn.nextLong();
			list.add(y);
		} {
			
			long y=scn.nextLong();
			list.add(y);
		} long y=scn.nextLong(); y scn.nextLong() scn.nextLong scn list.add(y) list.add list y long s=0; s 0 for(Long i:list) {
			s=s+i;
		} Long i list {
			s=s+i;
		} {
			s=s+i;
		} s=s+i s s+i s i if(s>=x) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} s>=x s x {
			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" scn.close() scn.close scn String[] args args public class Main{
	public static void main(String[] args) {
	
		Scanner scn=new Scanner(System.in);
		ArrayList<Long> list=new ArrayList<>();
		
		long x=scn.nextInt();
		long t=scn.nextInt();
		
		for(int i=0;i<t;i++) {
			
			long y=scn.nextLong();
			list.add(y);
		}
		
		long s=0;
		for(Long i:list) {
			s=s+i;
		}
		
		if(s>=x) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		scn.close();
	}
} public class Main{
	public static void main(String[] args) {
	
		Scanner scn=new Scanner(System.in);
		ArrayList<Long> list=new ArrayList<>();
		
		long x=scn.nextInt();
		long t=scn.nextInt();
		
		for(int i=0;i<t;i++) {
			
			long y=scn.nextLong();
			list.add(y);
		}
		
		long s=0;
		for(Long i:list) {
			s=s+i;
		}
		
		if(s>=x) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		scn.close();
	}
} Main
import java.util.ArrayList;

import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
	
		Scanner scn=new Scanner(System.in);
		ArrayList<Long> list=new ArrayList<>();
		
		long x=scn.nextInt();
		long t=scn.nextInt();
		
		for(int i=0;i<t;i++) {
			
			long y=scn.nextLong();
			list.add(y);
		}
		
		long s=0;
		for(Long i:list) {
			s=s+i;
		}
		
		if(s>=x) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		scn.close();
	}
}