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();

		for(int i = 0; i < N; i++) {
			int a;
			a = scan.nextInt();
			H -= a;
		}

		if(H <= 0) {
			System.out.println("Yes");
		}else {
			System.out.println("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();

		for(int i = 0; i < N; i++) {
			int a;
			a = scan.nextInt();
			H -= a;
		}

		if(H <= 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			int a;
			a = scan.nextInt();
			H -= a;
		}

		if(H <= 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {

		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			int a;
			a = scan.nextInt();
			H -= a;
		}

		if(H <= 0) {
			System.out.println("Yes");
		}else {
			System.out.println("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 for(int i = 0; i < N; i++) {
			int a;
			a = scan.nextInt();
			H -= a;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int a;
			a = scan.nextInt();
			H -= a;
		} {
			int a;
			a = scan.nextInt();
			H -= a;
		} int a; a a = scan.nextInt() a scan.nextInt() scan.nextInt scan H -= a H a if(H <= 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} H <= 0 H 0 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "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();

		for(int i = 0; i < N; i++) {
			int a;
			a = scan.nextInt();
			H -= a;
		}

		if(H <= 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int H = scan.nextInt();
		int N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			int a;
			a = scan.nextInt();
			H -= a;
		}

		if(H <= 0) {
			System.out.println("Yes");
		}else {
			System.out.println("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();

		for(int i = 0; i < N; i++) {
			int a;
			a = scan.nextInt();
			H -= a;
		}

		if(H <= 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
}