
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	private static String YES = "Yes";
	private static String NO = "No";

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long monsterHP = scan.nextLong();
		long nunberSPATK = scan.nextLong();

		List<Long> listInput = new ArrayList<Long>();
		for (int i = 0; i < nunberSPATK; i++) {
			listInput.add(scan.nextLong());
		}

		scan.close();

		for(int i = 0; i < nunberSPATK; i++) {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		}
		System.out.println(NO);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	private static String YES = "Yes";
	private static String NO = "No";

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long monsterHP = scan.nextLong();
		long nunberSPATK = scan.nextLong();

		List<Long> listInput = new ArrayList<Long>();
		for (int i = 0; i < nunberSPATK; i++) {
			listInput.add(scan.nextLong());
		}

		scan.close();

		for(int i = 0; i < nunberSPATK; i++) {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		}
		System.out.println(NO);
	}
} Main private static String YES = "Yes"; YES "Yes" private static String NO = "No"; NO "No" public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long monsterHP = scan.nextLong();
		long nunberSPATK = scan.nextLong();

		List<Long> listInput = new ArrayList<Long>();
		for (int i = 0; i < nunberSPATK; i++) {
			listInput.add(scan.nextLong());
		}

		scan.close();

		for(int i = 0; i < nunberSPATK; i++) {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		}
		System.out.println(NO);
	} main {

		Scanner scan = new Scanner(System.in);

		long monsterHP = scan.nextLong();
		long nunberSPATK = scan.nextLong();

		List<Long> listInput = new ArrayList<Long>();
		for (int i = 0; i < nunberSPATK; i++) {
			listInput.add(scan.nextLong());
		}

		scan.close();

		for(int i = 0; i < nunberSPATK; i++) {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		}
		System.out.println(NO);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long monsterHP = scan.nextLong(); monsterHP scan.nextLong() scan.nextLong scan long nunberSPATK = scan.nextLong(); nunberSPATK scan.nextLong() scan.nextLong scan List<Long> listInput = new ArrayList<Long>(); listInput new ArrayList<Long>() for (int i = 0; i < nunberSPATK; i++) {
			listInput.add(scan.nextLong());
		} int i = 0; int i = 0; i 0 i < nunberSPATK i nunberSPATK i++ i++ i {
			listInput.add(scan.nextLong());
		} {
			listInput.add(scan.nextLong());
		} listInput.add(scan.nextLong()) listInput.add listInput scan.nextLong() scan.nextLong scan scan.close() scan.close scan for(int i = 0; i < nunberSPATK; i++) {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		} int i = 0; int i = 0; i 0 i < nunberSPATK i nunberSPATK i++ i++ i {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		} {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		} monsterHP -= listInput.get(i) monsterHP listInput.get(i) listInput.get listInput i if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			} monsterHP <= 0 monsterHP 0 {
				System.out.println(YES);
				return;
			} System.out.println(YES) System.out.println System.out System System.out YES return; System.out.println(NO) System.out.println System.out System System.out NO String[] args args public class Main {

	private static String YES = "Yes";
	private static String NO = "No";

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long monsterHP = scan.nextLong();
		long nunberSPATK = scan.nextLong();

		List<Long> listInput = new ArrayList<Long>();
		for (int i = 0; i < nunberSPATK; i++) {
			listInput.add(scan.nextLong());
		}

		scan.close();

		for(int i = 0; i < nunberSPATK; i++) {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		}
		System.out.println(NO);
	}
} public class Main {

	private static String YES = "Yes";
	private static String NO = "No";

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long monsterHP = scan.nextLong();
		long nunberSPATK = scan.nextLong();

		List<Long> listInput = new ArrayList<Long>();
		for (int i = 0; i < nunberSPATK; i++) {
			listInput.add(scan.nextLong());
		}

		scan.close();

		for(int i = 0; i < nunberSPATK; i++) {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		}
		System.out.println(NO);
	}
} Main

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	private static String YES = "Yes";
	private static String NO = "No";

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long monsterHP = scan.nextLong();
		long nunberSPATK = scan.nextLong();

		List<Long> listInput = new ArrayList<Long>();
		for (int i = 0; i < nunberSPATK; i++) {
			listInput.add(scan.nextLong());
		}

		scan.close();

		for(int i = 0; i < nunberSPATK; i++) {
			monsterHP -= listInput.get(i);
			if (monsterHP <= 0) {
				System.out.println(YES);
				return;
			}
		}
		System.out.println(NO);
	}
}
