import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int temp = 0;
		
		for(int i = 0; i < b; i++){
			temp = temp + sc.nextInt();
		}
		
		if(temp >= a){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int temp = 0;
		
		for(int i = 0; i < b; i++){
			temp = temp + sc.nextInt();
		}
		
		if(temp >= a){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int temp = 0;
		
		for(int i = 0; i < b; i++){
			temp = temp + sc.nextInt();
		}
		
		if(temp >= a){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
	} main {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int temp = 0;
		
		for(int i = 0; i < b; i++){
			temp = temp + sc.nextInt();
		}
		
		if(temp >= a){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int temp = 0; temp 0 for(int i = 0; i < b; i++){
			temp = temp + sc.nextInt();
		} int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
			temp = temp + sc.nextInt();
		} {
			temp = temp + sc.nextInt();
		} temp = temp + sc.nextInt() temp temp + sc.nextInt() temp sc.nextInt() sc.nextInt sc if(temp >= a){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} temp >= a temp a {
			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 public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int temp = 0;
		
		for(int i = 0; i < b; i++){
			temp = temp + sc.nextInt();
		}
		
		if(temp >= a){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int temp = 0;
		
		for(int i = 0; i < b; i++){
			temp = temp + sc.nextInt();
		}
		
		if(temp >= a){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int temp = 0;
		
		for(int i = 0; i < b; i++){
			temp = temp + sc.nextInt();
		}
		
		if(temp >= a){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
	}
}
