import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int H = stdIn.nextInt();
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int sum = 0;
		for(int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		}
		if(H - sum > 0){
			System.out.println("No");
		}
		else{
			System.out.println("Yes");
		}
		stdIn.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int H = stdIn.nextInt();
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int sum = 0;
		for(int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		}
		if(H - sum > 0){
			System.out.println("No");
		}
		else{
			System.out.println("Yes");
		}
		stdIn.close();
	}
} Main public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int H = stdIn.nextInt();
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int sum = 0;
		for(int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		}
		if(H - sum > 0){
			System.out.println("No");
		}
		else{
			System.out.println("Yes");
		}
		stdIn.close();
	} main {
		Scanner stdIn = new Scanner(System.in);
		int H = stdIn.nextInt();
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int sum = 0;
		for(int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		}
		if(H - sum > 0){
			System.out.println("No");
		}
		else{
			System.out.println("Yes");
		}
		stdIn.close();
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int H = stdIn.nextInt(); H stdIn.nextInt() stdIn.nextInt stdIn int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int A[] = new int[N]; A new int[N] N int sum = 0; sum 0 for(int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		} {
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		} A[i] = stdIn.nextInt() A[i] A i stdIn.nextInt() stdIn.nextInt stdIn sum = sum + A[i] sum sum + A[i] sum A[i] A i if(H - sum > 0){
			System.out.println("No");
		}
		else{
			System.out.println("Yes");
		} H - sum > 0 H - sum H sum 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" stdIn.close() stdIn.close stdIn String[] args args public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int H = stdIn.nextInt();
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int sum = 0;
		for(int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		}
		if(H - sum > 0){
			System.out.println("No");
		}
		else{
			System.out.println("Yes");
		}
		stdIn.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int H = stdIn.nextInt();
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int sum = 0;
		for(int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		}
		if(H - sum > 0){
			System.out.println("No");
		}
		else{
			System.out.println("Yes");
		}
		stdIn.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int H = stdIn.nextInt();
		int N = stdIn.nextInt();
		int A[] = new int[N];
		int sum = 0;
		for(int i = 0; i < N; i++){
			A[i] = stdIn.nextInt();
			sum = sum + A[i];
		}
		if(H - sum > 0){
			System.out.println("No");
		}
		else{
			System.out.println("Yes");
		}
		stdIn.close();
	}
}