import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static final int MOD = 1000000007;
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int h = parseInt(sc.next());
		int n = parseInt(sc.next());
		int[] a = new int[n];
		int sum = 0;
		for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		}
		sc.close();
		out.println(h<=sum?"Yes":"No");
	}
} import java.util.*; util.* java import java.io.PrintWriter; PrintWriter java.io import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
	public static final int MOD = 1000000007;
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int h = parseInt(sc.next());
		int n = parseInt(sc.next());
		int[] a = new int[n];
		int sum = 0;
		for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		}
		sc.close();
		out.println(h<=sum?"Yes":"No");
	}
} Main public static final int MOD = 1000000007; MOD 1000000007 public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int h = parseInt(sc.next());
		int n = parseInt(sc.next());
		int[] a = new int[n];
		int sum = 0;
		for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		}
		sc.close();
		out.println(h<=sum?"Yes":"No");
	} main {
		int i,j;
		Scanner sc = new Scanner(in);
		int h = parseInt(sc.next());
		int n = parseInt(sc.next());
		int[] a = new int[n];
		int sum = 0;
		for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		}
		sc.close();
		out.println(h<=sum?"Yes":"No");
	} int i i j; j Scanner sc = new Scanner(in); sc new Scanner(in) int h = parseInt(sc.next()); h parseInt(sc.next()) parseInt sc.next() sc.next sc int n = parseInt(sc.next()); n parseInt(sc.next()) parseInt sc.next() sc.next sc int[] a = new int[n]; a new int[n] n int sum = 0; sum 0 for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		} i = 0; i = 0 i 0 i < a.length i a.length a a.length i++ i++ i {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		} {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		} a[i] = parseInt(sc.next()) a[i] a i parseInt(sc.next()) parseInt sc.next() sc.next sc sum+=a[i] sum a[i] a i sc.close() sc.close sc out.println(h<=sum?"Yes":"No") out.println out h<=sum?"Yes":"No" h<=sum h sum "Yes" "No" String[] args args public class Main {
	public static final int MOD = 1000000007;
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int h = parseInt(sc.next());
		int n = parseInt(sc.next());
		int[] a = new int[n];
		int sum = 0;
		for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		}
		sc.close();
		out.println(h<=sum?"Yes":"No");
	}
} public class Main {
	public static final int MOD = 1000000007;
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int h = parseInt(sc.next());
		int n = parseInt(sc.next());
		int[] a = new int[n];
		int sum = 0;
		for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		}
		sc.close();
		out.println(h<=sum?"Yes":"No");
	}
} Main
import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static final int MOD = 1000000007;
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		int h = parseInt(sc.next());
		int n = parseInt(sc.next());
		int[] a = new int[n];
		int sum = 0;
		for (i = 0; i < a.length; i++) {
			a[i] = parseInt(sc.next());
			sum+=a[i];
		}
		sc.close();
		out.println(h<=sum?"Yes":"No");
	}
}
