import java.util.*;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
        int hoge = sc.nextInt();
      	int waza = 0;
		for(int i = 0; i < hoge; i++){
			waza += sc.nextInt();
		}
		if(waza >= HP){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		}
	}
} import java.util.*; util.* java import java.util.Arrays; Arrays java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
        int hoge = sc.nextInt();
      	int waza = 0;
		for(int i = 0; i < hoge; i++){
			waza += sc.nextInt();
		}
		if(waza >= HP){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
        int hoge = sc.nextInt();
      	int waza = 0;
		for(int i = 0; i < hoge; i++){
			waza += sc.nextInt();
		}
		if(waza >= HP){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
        int hoge = sc.nextInt();
      	int waza = 0;
		for(int i = 0; i < hoge; i++){
			waza += sc.nextInt();
		}
		if(waza >= HP){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int HP = sc.nextInt(); HP sc.nextInt() sc.nextInt sc int hoge = sc.nextInt(); hoge sc.nextInt() sc.nextInt sc int waza = 0; waza 0 for(int i = 0; i < hoge; i++){
			waza += sc.nextInt();
		} int i = 0; int i = 0; i 0 i < hoge i hoge i++ i++ i {
			waza += sc.nextInt();
		} {
			waza += sc.nextInt();
		} waza += sc.nextInt() waza sc.nextInt() sc.nextInt sc if(waza >= HP){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		} waza >= HP waza HP {
			System.out.print("Yes");
		} System.out.print("Yes") System.out.print System.out System System.out "Yes" {
			System.out.print("No");
		} System.out.print("No") System.out.print System.out System System.out "No" String[] args args
import java.util.*;
import java.util.Arrays;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
        int hoge = sc.nextInt();
      	int waza = 0;
		for(int i = 0; i < hoge; i++){
			waza += sc.nextInt();
		}
		if(waza >= HP){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		}
	}
}