import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();		
		int sumA = 0;

		for (int i=0;i<N;i++){
			sumA = sumA + scan.nextInt();
		}
		if (sumA >= H) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();		
		int sumA = 0;

		for (int i=0;i<N;i++){
			sumA = sumA + scan.nextInt();
		}
		if (sumA >= H) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();		
		int sumA = 0;

		for (int i=0;i<N;i++){
			sumA = sumA + scan.nextInt();
		}
		if (sumA >= H) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();		
		int sumA = 0;

		for (int i=0;i<N;i++){
			sumA = sumA + scan.nextInt();
		}
		if (sumA >= H) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int H = scan.nextInt(); H scan.nextInt() scan.nextInt scan int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int sumA = 0; sumA 0 for (int i=0;i<N;i++){
			sumA = sumA + scan.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			sumA = sumA + scan.nextInt();
		} {
			sumA = sumA + scan.nextInt();
		} sumA = sumA + scan.nextInt() sumA sumA + scan.nextInt() sumA scan.nextInt() scan.nextInt scan if (sumA >= H) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} sumA >= H sumA H {
			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){
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();		
		int sumA = 0;

		for (int i=0;i<N;i++){
			sumA = sumA + scan.nextInt();
		}
		if (sumA >= H) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();		
		int sumA = 0;

		for (int i=0;i<N;i++){
			sumA = sumA + scan.nextInt();
		}
		if (sumA >= H) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();		
		int sumA = 0;

		for (int i=0;i<N;i++){
			sumA = sumA + scan.nextInt();
		}
		if (sumA >= H) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}