import java.util.*;
import static java.lang.Math.ceil;
class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int health = input.nextInt();
		int n = input.nextInt();
		Vector<Integer> a = new Vector<>(n);
		int sum = 0;
		for(int i = 0;i < n; ++i){
			int x = input.nextInt();
			a.add(x);
		}
		for(int i = 0;i < n; ++i){
			sum += a.get(i);
		}
		if(sum >= health){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} import java.util.*; util.* java import static java.lang.Math.ceil; import static java.lang.Math.ceil; import static java.lang.Math.ceil; class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int health = input.nextInt();
		int n = input.nextInt();
		Vector<Integer> a = new Vector<>(n);
		int sum = 0;
		for(int i = 0;i < n; ++i){
			int x = input.nextInt();
			a.add(x);
		}
		for(int i = 0;i < n; ++i){
			sum += a.get(i);
		}
		if(sum >= health){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} Main public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int health = input.nextInt();
		int n = input.nextInt();
		Vector<Integer> a = new Vector<>(n);
		int sum = 0;
		for(int i = 0;i < n; ++i){
			int x = input.nextInt();
			a.add(x);
		}
		for(int i = 0;i < n; ++i){
			sum += a.get(i);
		}
		if(sum >= health){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	} main {
		Scanner input = new Scanner(System.in);
		int health = input.nextInt();
		int n = input.nextInt();
		Vector<Integer> a = new Vector<>(n);
		int sum = 0;
		for(int i = 0;i < n; ++i){
			int x = input.nextInt();
			a.add(x);
		}
		for(int i = 0;i < n; ++i){
			sum += a.get(i);
		}
		if(sum >= health){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int health = input.nextInt(); health input.nextInt() input.nextInt input int n = input.nextInt(); n input.nextInt() input.nextInt input Vector<Integer> a = new Vector<>(n); a new Vector<>(n) int sum = 0; sum 0 for(int i = 0;i < n; ++i){
			int x = input.nextInt();
			a.add(x);
		} int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
			int x = input.nextInt();
			a.add(x);
		} {
			int x = input.nextInt();
			a.add(x);
		} int x = input.nextInt(); x input.nextInt() input.nextInt input a.add(x) a.add a x for(int i = 0;i < n; ++i){
			sum += a.get(i);
		} int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
			sum += a.get(i);
		} {
			sum += a.get(i);
		} sum += a.get(i) sum a.get(i) a.get a i if(sum >= health){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} sum >= health sum health {
			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
import java.util.*;
import static java.lang.Math.ceil;
class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int health = input.nextInt();
		int n = input.nextInt();
		Vector<Integer> a = new Vector<>(n);
		int sum = 0;
		for(int i = 0;i < n; ++i){
			int x = input.nextInt();
			a.add(x);
		}
		for(int i = 0;i < n; ++i){
			sum += a.get(i);
		}
		if(sum >= health){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}