import java.util.Scanner;

class Main{
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		long H = sc.nextLong(), N = sc.nextLong(), sum = 0;
		long[] A = new long[100005];
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextLong();
			sum += A[i];
		}
		if(sum >= H) {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		long H = sc.nextLong(), N = sc.nextLong(), sum = 0;
		long[] A = new long[100005];
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextLong();
			sum += A[i];
		}
		if(sum >= H) {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		long H = sc.nextLong(), N = sc.nextLong(), sum = 0;
		long[] A = new long[100005];
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextLong();
			sum += A[i];
		}
		if(sum >= H) {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		long H = sc.nextLong(), N = sc.nextLong(), sum = 0;
		long[] A = new long[100005];
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextLong();
			sum += A[i];
		}
		if(sum >= H) {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long H = sc.nextLong() H sc.nextLong() sc.nextLong sc N = sc.nextLong() N sc.nextLong() sc.nextLong sc sum = 0; sum 0 long[] A = new long[100005]; A new long[100005] 100005 for(int i = 0; i < N; i++) {
			A[i] = sc.nextLong();
			sum += A[i];
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = sc.nextLong();
			sum += A[i];
		} {
			A[i] = sc.nextLong();
			sum += A[i];
		} A[i] = sc.nextLong() A[i] A i sc.nextLong() sc.nextLong sc sum += A[i] sum A[i] A i if(sum >= H) {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		} sum >= H sum H {
			System.out.print("Yes");
		} System.out.print("Yes") System.out.print System.out System System.out "Yes" {
			System.out.print("No");
		} System.out.print("No") System.out.print System.out System System.out "No" String args[] args
import java.util.Scanner;

class Main{
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		long H = sc.nextLong(), N = sc.nextLong(), sum = 0;
		long[] A = new long[100005];
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextLong();
			sum += A[i];
		}
		if(sum >= H) {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}
	}
}
