import java.util.Scanner;
class Main{
  public void fun() {
  Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int a[];
    a=new int[n];
    for(int i=0;i<a.length;i++)
    {
     a[i]=sc.nextInt();
          }
    int i=0;
    while(i<a.length)
    {  
       h=h-a[i];
      i++;
 
    }
    if(h<=0)
    {
     System.out.print("Yes"); 
    }
    else{System.out.print("No");}
    
  }
  public static void main(String arr[])
  {
       Main m = new Main();
    	m.fun();
  }
} import java.util.Scanner; Scanner java.util class Main{
  public void fun() {
  Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int a[];
    a=new int[n];
    for(int i=0;i<a.length;i++)
    {
     a[i]=sc.nextInt();
          }
    int i=0;
    while(i<a.length)
    {  
       h=h-a[i];
      i++;
 
    }
    if(h<=0)
    {
     System.out.print("Yes"); 
    }
    else{System.out.print("No");}
    
  }
  public static void main(String arr[])
  {
       Main m = new Main();
    	m.fun();
  }
} Main public void fun() {
  Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int a[];
    a=new int[n];
    for(int i=0;i<a.length;i++)
    {
     a[i]=sc.nextInt();
          }
    int i=0;
    while(i<a.length)
    {  
       h=h-a[i];
      i++;
 
    }
    if(h<=0)
    {
     System.out.print("Yes"); 
    }
    else{System.out.print("No");}
    
  } fun {
  Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int a[];
    a=new int[n];
    for(int i=0;i<a.length;i++)
    {
     a[i]=sc.nextInt();
          }
    int i=0;
    while(i<a.length)
    {  
       h=h-a[i];
      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[]; a a=new int[n] a new int[n] n for(int i=0;i<a.length;i++)
    {
     a[i]=sc.nextInt();
          } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
     a[i]=sc.nextInt();
          } {
     a[i]=sc.nextInt();
          } a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int i=0; i 0 while(i<a.length)
    {  
       h=h-a[i];
      i++;
 
    } i<a.length i a.length a a.length {  
       h=h-a[i];
      i++;
 
    } h=h-a[i] h h-a[i] h a[i] a i i++ 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" public static void main(String arr[])
  {
       Main m = new Main();
    	m.fun();
  } main {
       Main m = new Main();
    	m.fun();
  } Main m = new Main(); m new Main() m.fun() m.fun m String arr[] arr
import java.util.Scanner;
class Main{
  public void fun() {
  Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int a[];
    a=new int[n];
    for(int i=0;i<a.length;i++)
    {
     a[i]=sc.nextInt();
          }
    int i=0;
    while(i<a.length)
    {  
       h=h-a[i];
      i++;
 
    }
    if(h<=0)
    {
     System.out.print("Yes"); 
    }
    else{System.out.print("No");}
    
  }
  public static void main(String arr[])
  {
       Main m = new Main();
    	m.fun();
  }
}
