import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long h = scan.nextLong();
		int n = scan.nextInt();
		int[] a = new int[n];
		int total = 0;

		for(int i=0;i<n;i++) {

			a[i] = scan.nextInt();
			total += a[i];
		}

		System.out.println(total >= h?"Yes":"No");

		scan.close();


	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long h = scan.nextLong();
		int n = scan.nextInt();
		int[] a = new int[n];
		int total = 0;

		for(int i=0;i<n;i++) {

			a[i] = scan.nextInt();
			total += a[i];
		}

		System.out.println(total >= h?"Yes":"No");

		scan.close();


	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long h = scan.nextLong();
		int n = scan.nextInt();
		int[] a = new int[n];
		int total = 0;

		for(int i=0;i<n;i++) {

			a[i] = scan.nextInt();
			total += a[i];
		}

		System.out.println(total >= h?"Yes":"No");

		scan.close();


	} main {

		Scanner scan = new Scanner(System.in);

		long h = scan.nextLong();
		int n = scan.nextInt();
		int[] a = new int[n];
		int total = 0;

		for(int i=0;i<n;i++) {

			a[i] = scan.nextInt();
			total += a[i];
		}

		System.out.println(total >= h?"Yes":"No");

		scan.close();


	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long h = scan.nextLong(); h scan.nextLong() scan.nextLong scan int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a = new int[n]; a new int[n] n int total = 0; total 0 for(int i=0;i<n;i++) {

			a[i] = scan.nextInt();
			total += a[i];
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {

			a[i] = scan.nextInt();
			total += a[i];
		} {

			a[i] = scan.nextInt();
			total += a[i];
		} a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan total += a[i] total a[i] a i System.out.println(total >= h?"Yes":"No") System.out.println System.out System System.out total >= h?"Yes":"No" total >= h total h "Yes" "No" scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long h = scan.nextLong();
		int n = scan.nextInt();
		int[] a = new int[n];
		int total = 0;

		for(int i=0;i<n;i++) {

			a[i] = scan.nextInt();
			total += a[i];
		}

		System.out.println(total >= h?"Yes":"No");

		scan.close();


	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long h = scan.nextLong();
		int n = scan.nextInt();
		int[] a = new int[n];
		int total = 0;

		for(int i=0;i<n;i++) {

			a[i] = scan.nextInt();
			total += a[i];
		}

		System.out.println(total >= h?"Yes":"No");

		scan.close();


	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long h = scan.nextLong();
		int n = scan.nextInt();
		int[] a = new int[n];
		int total = 0;

		for(int i=0;i<n;i++) {

			a[i] = scan.nextInt();
			total += a[i];
		}

		System.out.println(total >= h?"Yes":"No");

		scan.close();


	}

}
