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

		}
		else {
			System.out.println("No");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		
		int H = scan.nextInt();
		int N = scan.nextInt();
		int sum = 0;
		for (int count = 0; count < N; count++) {
			int x = scan.nextInt();
			sum += x;
			
		}
		if(H <= sum) {
			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 int sum = 0; sum 0 for (int count = 0; count < N; count++) {
			int x = scan.nextInt();
			sum += x;
			
		} int count = 0; int count = 0; count 0 count < N count N count++ count++ count {
			int x = scan.nextInt();
			sum += x;
			
		} {
			int x = scan.nextInt();
			sum += x;
			
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan sum += x sum x if(H <= sum) {
			System.out.println("Yes");

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

		}
		else {
			System.out.println("No");
		}
	}
}
