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