import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int tairyoku = sc.nextInt();
		int syurui = sc.nextInt();
		int total = 0;
		for(int i= 0; i<syurui;  i++) {
			total  = total + sc.nextInt();
		}
		
		if(total<tairyoku) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int tairyoku = sc.nextInt();
		int syurui = sc.nextInt();
		int total = 0;
		for(int i= 0; i<syurui;  i++) {
			total  = total + sc.nextInt();
		}
		
		if(total<tairyoku) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int tairyoku = sc.nextInt();
		int syurui = sc.nextInt();
		int total = 0;
		for(int i= 0; i<syurui;  i++) {
			total  = total + sc.nextInt();
		}
		
		if(total<tairyoku) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int tairyoku = sc.nextInt();
		int syurui = sc.nextInt();
		int total = 0;
		for(int i= 0; i<syurui;  i++) {
			total  = total + sc.nextInt();
		}
		
		if(total<tairyoku) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int tairyoku = sc.nextInt(); tairyoku sc.nextInt() sc.nextInt sc int syurui = sc.nextInt(); syurui sc.nextInt() sc.nextInt sc int total = 0; total 0 for(int i= 0; i<syurui;  i++) {
			total  = total + sc.nextInt();
		} int i= 0; int i= 0; i 0 i<syurui i syurui i++ i++ i {
			total  = total + sc.nextInt();
		} {
			total  = total + sc.nextInt();
		} total  = total + sc.nextInt() total total + sc.nextInt() total sc.nextInt() sc.nextInt sc if(total<tairyoku) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		} total<tairyoku total tairyoku {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int tairyoku = sc.nextInt();
		int syurui = sc.nextInt();
		int total = 0;
		for(int i= 0; i<syurui;  i++) {
			total  = total + sc.nextInt();
		}
		
		if(total<tairyoku) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int tairyoku = sc.nextInt();
		int syurui = sc.nextInt();
		int total = 0;
		for(int i= 0; i<syurui;  i++) {
			total  = total + sc.nextInt();
		}
		
		if(total<tairyoku) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int tairyoku = sc.nextInt();
		int syurui = sc.nextInt();
		int total = 0;
		for(int i= 0; i<syurui;  i++) {
			total  = total + sc.nextInt();
		}
		
		if(total<tairyoku) {
			System.out.println("No");
		}else {
			System.out.println("Yes");
		}

	}

}