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

  
} import java.util.*; util.* 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 sum = 0;
    for(int i=0;i<N;i++){
      sum=sum+sc.nextLong();
    }
    if(H>sum){
      System.out.println("No");
      return;
    }else{
      System.out.println("Yes");
    }
  }
  

  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long H = sc.nextLong();
    int N = sc.nextInt();
    long sum = 0;
    for(int i=0;i<N;i++){
      sum=sum+sc.nextLong();
    }
    if(H>sum){
      System.out.println("No");
      return;
    }else{
      System.out.println("Yes");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    long H = sc.nextLong();
    int N = sc.nextInt();
    long sum = 0;
    for(int i=0;i<N;i++){
      sum=sum+sc.nextLong();
    }
    if(H>sum){
      System.out.println("No");
      return;
    }else{
      System.out.println("Yes");
    }
  } 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 sum = 0; sum 0 for(int i=0;i<N;i++){
      sum=sum+sc.nextLong();
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      sum=sum+sc.nextLong();
    } {
      sum=sum+sc.nextLong();
    } sum=sum+sc.nextLong() sum sum+sc.nextLong() sum sc.nextLong() sc.nextLong sc if(H>sum){
      System.out.println("No");
      return;
    }else{
      System.out.println("Yes");
    } H>sum H sum {
      System.out.println("No");
      return;
    } System.out.println("No") System.out.println System.out System System.out "No" return; {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" 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 sum = 0;
    for(int i=0;i<N;i++){
      sum=sum+sc.nextLong();
    }
    if(H>sum){
      System.out.println("No");
      return;
    }else{
      System.out.println("Yes");
    }
  }
  

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

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

  
}