import java.util.*;

class Main {
	Scanner sc;
	
	private void calc() {
		sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		long s = 0;
		for (int i = 0; i < N; i++) {
			s += sc.nextInt();
		}
		System.out.println((s>=H)?"Yes":"No");
	}

	public static void main(String[] args) {
		new Main().calc();
	}
} import java.util.*; util.* java class Main {
	Scanner sc;
	
	private void calc() {
		sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		long s = 0;
		for (int i = 0; i < N; i++) {
			s += sc.nextInt();
		}
		System.out.println((s>=H)?"Yes":"No");
	}

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

class Main {
	Scanner sc;
	
	private void calc() {
		sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		long s = 0;
		for (int i = 0; i < N; i++) {
			s += sc.nextInt();
		}
		System.out.println((s>=H)?"Yes":"No");
	}

	public static void main(String[] args) {
		new Main().calc();
	}
}
