import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	long h = Long.parseLong(stdIn.next());
	int n = stdIn.nextInt();
	int sum=0;
	int[] a=new int[n];
	String result="No";
	for(int j=0;j<n;j++){
	    a[j]=stdIn.nextInt();
	    sum+=a[j];
	    if(sum>=h){
		result = "Yes";
		break;
	    }
	}
	System.out.println(result);
    }
}
	 import java.util.*; util.* java class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	long h = Long.parseLong(stdIn.next());
	int n = stdIn.nextInt();
	int sum=0;
	int[] a=new int[n];
	String result="No";
	for(int j=0;j<n;j++){
	    a[j]=stdIn.nextInt();
	    sum+=a[j];
	    if(sum>=h){
		result = "Yes";
		break;
	    }
	}
	System.out.println(result);
    }
} Main public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	long h = Long.parseLong(stdIn.next());
	int n = stdIn.nextInt();
	int sum=0;
	int[] a=new int[n];
	String result="No";
	for(int j=0;j<n;j++){
	    a[j]=stdIn.nextInt();
	    sum+=a[j];
	    if(sum>=h){
		result = "Yes";
		break;
	    }
	}
	System.out.println(result);
    } main {
	Scanner stdIn = new Scanner(System.in);
	long h = Long.parseLong(stdIn.next());
	int n = stdIn.nextInt();
	int sum=0;
	int[] a=new int[n];
	String result="No";
	for(int j=0;j<n;j++){
	    a[j]=stdIn.nextInt();
	    sum+=a[j];
	    if(sum>=h){
		result = "Yes";
		break;
	    }
	}
	System.out.println(result);
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) long h = Long.parseLong(stdIn.next()); h Long.parseLong(stdIn.next()) Long.parseLong Long stdIn.next() stdIn.next stdIn int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int sum=0; sum 0 int[] a=new int[n]; a new int[n] n String result="No"; result "No" for(int j=0;j<n;j++){
	    a[j]=stdIn.nextInt();
	    sum+=a[j];
	    if(sum>=h){
		result = "Yes";
		break;
	    }
	} int j=0; int j=0; j 0 j<n j n j++ j++ j {
	    a[j]=stdIn.nextInt();
	    sum+=a[j];
	    if(sum>=h){
		result = "Yes";
		break;
	    }
	} {
	    a[j]=stdIn.nextInt();
	    sum+=a[j];
	    if(sum>=h){
		result = "Yes";
		break;
	    }
	} a[j]=stdIn.nextInt() a[j] a j stdIn.nextInt() stdIn.nextInt stdIn sum+=a[j] sum a[j] a j if(sum>=h){
		result = "Yes";
		break;
	    } sum>=h sum h {
		result = "Yes";
		break;
	    } result = "Yes" result "Yes" break; System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	long h = Long.parseLong(stdIn.next());
	int n = stdIn.nextInt();
	int sum=0;
	int[] a=new int[n];
	String result="No";
	for(int j=0;j<n;j++){
	    a[j]=stdIn.nextInt();
	    sum+=a[j];
	    if(sum>=h){
		result = "Yes";
		break;
	    }
	}
	System.out.println(result);
    }
}
	
