import java.util.Scanner;

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

		try (Scanner sc = new Scanner(System.in)) {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		try (Scanner sc = new Scanner(System.in)) {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
} Main public static void main(String[] args) {

		try (Scanner sc = new Scanner(System.in)) {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	} main {

		try (Scanner sc = new Scanner(System.in)) {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	} try (Scanner sc = new Scanner(System.in)) {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		} {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int i = 0; i 0 while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			} h > 0 && i++ < n h > 0 h 0 i++ < n i++ i n {
				h -= sc.nextInt();
			} h -= sc.nextInt() h sc.nextInt() sc.nextInt sc if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			} h > 0 h 0 {
				System.out.println("No");
			} System.out.println("No") System.out.println System.out System System.out "No" {
				System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
	public static void main(String[] args) {

		try (Scanner sc = new Scanner(System.in)) {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
} public class Main {
	public static void main(String[] args) {

		try (Scanner sc = new Scanner(System.in)) {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
} Main
import java.util.Scanner;

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

		try (Scanner sc = new Scanner(System.in)) {
			int h = sc.nextInt();
			int n = sc.nextInt();
			int i = 0;
			while (h > 0 && i++ < n) {
				h -= sc.nextInt();
			}
			if (h > 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
}
