import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int[] a = new int[n];

		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		}


		String ans = "Yes";
		if(sum < h) {
			ans = "No";
		}


		System.out.println(ans);

	}

} import java.util.Scanner; Scanner 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[] a = new int[n];

		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		}


		String ans = "Yes";
		if(sum < h) {
			ans = "No";
		}


		System.out.println(ans);

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int[] a = new int[n];

		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		}


		String ans = "Yes";
		if(sum < h) {
			ans = "No";
		}


		System.out.println(ans);

	} main {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int[] a = new int[n];

		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		}


		String ans = "Yes";
		if(sum < h) {
			ans = "No";
		}


		System.out.println(ans);

	} 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[] a = new int[n]; a new int[n] n int sum = 0; sum 0 for(int i = 0; i < n ; i++) {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		} {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		} a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan sum += a[i] sum a[i] a i if(sum >= 1_000_000_000) {
				break;
			} sum >= 1_000_000_000 sum 1_000_000_000 {
				break;
			} break; String ans = "Yes"; ans "Yes" 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 scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int[] a = new int[n];

		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		}


		String ans = "Yes";
		if(sum < h) {
			ans = "No";
		}


		System.out.println(ans);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int[] a = new int[n];

		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		}


		String ans = "Yes";
		if(sum < h) {
			ans = "No";
		}


		System.out.println(ans);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int[] a = new int[n];

		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = scan.nextInt();
			sum += a[i];
			if(sum >= 1_000_000_000) {
				break;
			}
		}


		String ans = "Yes";
		if(sum < h) {
			ans = "No";
		}


		System.out.println(ans);

	}

}