import java.util.*;
import java.lang.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		long H = sc.nextLong();
		int N = sc.nextInt();
		long ans = 0;
		for( int i=0; i<N; i++ ){
			long a = sc.nextLong();
			ans += a;
		}
		System.out.println(ans>=H?"Yes":"No");
	}
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		long H = sc.nextLong();
		int N = sc.nextInt();
		long ans = 0;
		for( int i=0; i<N; i++ ){
			long a = sc.nextLong();
			ans += a;
		}
		System.out.println(ans>=H?"Yes":"No");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		long H = sc.nextLong();
		int N = sc.nextInt();
		long ans = 0;
		for( int i=0; i<N; i++ ){
			long a = sc.nextLong();
			ans += a;
		}
		System.out.println(ans>=H?"Yes":"No");
	} main {
		Scanner sc = new Scanner(System.in);

		long H = sc.nextLong();
		int N = sc.nextInt();
		long ans = 0;
		for( int i=0; i<N; i++ ){
			long a = sc.nextLong();
			ans += a;
		}
		System.out.println(ans>=H?"Yes":"No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long H = sc.nextLong(); H sc.nextLong() sc.nextLong sc int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc long ans = 0; ans 0 for( int i=0; i<N; i++ ){
			long a = sc.nextLong();
			ans += a;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			long a = sc.nextLong();
			ans += a;
		} {
			long a = sc.nextLong();
			ans += a;
		} long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc ans += a ans a System.out.println(ans>=H?"Yes":"No") System.out.println System.out System System.out ans>=H?"Yes":"No" ans>=H ans H "Yes" "No" String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		long H = sc.nextLong();
		int N = sc.nextInt();
		long ans = 0;
		for( int i=0; i<N; i++ ){
			long a = sc.nextLong();
			ans += a;
		}
		System.out.println(ans>=H?"Yes":"No");
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		long H = sc.nextLong();
		int N = sc.nextInt();
		long ans = 0;
		for( int i=0; i<N; i++ ){
			long a = sc.nextLong();
			ans += a;
		}
		System.out.println(ans>=H?"Yes":"No");
	}
} Main
import java.util.*;
import java.lang.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		long H = sc.nextLong();
		int N = sc.nextInt();
		long ans = 0;
		for( int i=0; i<N; i++ ){
			long a = sc.nextLong();
			ans += a;
		}
		System.out.println(ans>=H?"Yes":"No");
	}
}
