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 sum=0;
		for(int i=0;i<n;i++) {
			sum+=scan.nextInt();
		}
		scan.close();

		System.out.println((h<=sum)? "Yes":"No");

	}
} 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 sum=0;
		for(int i=0;i<n;i++) {
			sum+=scan.nextInt();
		}
		scan.close();

		System.out.println((h<=sum)? "Yes":"No");

	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int sum=0;
		for(int i=0;i<n;i++) {
			sum+=scan.nextInt();
		}
		scan.close();

		System.out.println((h<=sum)? "Yes":"No");

	} main {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int sum=0;
		for(int i=0;i<n;i++) {
			sum+=scan.nextInt();
		}
		scan.close();

		System.out.println((h<=sum)? "Yes":"No");

	} 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 sum=0; sum 0 for(int i=0;i<n;i++) {
			sum+=scan.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			sum+=scan.nextInt();
		} {
			sum+=scan.nextInt();
		} sum+=scan.nextInt() sum scan.nextInt() scan.nextInt scan scan.close() scan.close scan System.out.println((h<=sum)? "Yes":"No") System.out.println System.out System System.out (h<=sum)? "Yes":"No" (h<=sum) h sum "Yes" "No" 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 sum=0;
		for(int i=0;i<n;i++) {
			sum+=scan.nextInt();
		}
		scan.close();

		System.out.println((h<=sum)? "Yes":"No");

	}
} public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int n = scan.nextInt();
		int sum=0;
		for(int i=0;i<n;i++) {
			sum+=scan.nextInt();
		}
		scan.close();

		System.out.println((h<=sum)? "Yes":"No");

	}
} 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 sum=0;
		for(int i=0;i<n;i++) {
			sum+=scan.nextInt();
		}
		scan.close();

		System.out.println((h<=sum)? "Yes":"No");

	}
}