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