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