import java.util.*;
import java.io.*;
public class Main {
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
      String[] split = input.split(" ");
        int totalPower = Integer.parseInt(split[0]);
        int n = Integer.parseInt(split[1]);
      int[] n1 = new int[n];
      String a = br.readLine();
      String[] split1 = a.split(" ");
      int sum =0;
      boolean canBreak = false;
      for(int i=0;i<n;i++){
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      }
      if(canBreak == false){
          System.out.println("No");
      }
     
    
}
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
      String[] split = input.split(" ");
        int totalPower = Integer.parseInt(split[0]);
        int n = Integer.parseInt(split[1]);
      int[] n1 = new int[n];
      String a = br.readLine();
      String[] split1 = a.split(" ");
      int sum =0;
      boolean canBreak = false;
      for(int i=0;i<n;i++){
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      }
      if(canBreak == false){
          System.out.println("No");
      }
     
    
}
} Main public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
      String[] split = input.split(" ");
        int totalPower = Integer.parseInt(split[0]);
        int n = Integer.parseInt(split[1]);
      int[] n1 = new int[n];
      String a = br.readLine();
      String[] split1 = a.split(" ");
      int sum =0;
      boolean canBreak = false;
      for(int i=0;i<n;i++){
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      }
      if(canBreak == false){
          System.out.println("No");
      }
     
    
} main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
      String[] split = input.split(" ");
        int totalPower = Integer.parseInt(split[0]);
        int n = Integer.parseInt(split[1]);
      int[] n1 = new int[n];
      String a = br.readLine();
      String[] split1 = a.split(" ");
      int sum =0;
      boolean canBreak = false;
      for(int i=0;i<n;i++){
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      }
      if(canBreak == false){
          System.out.println("No");
      }
     
    
} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input = br.readLine(); input br.readLine() br.readLine br String[] split = input.split(" "); split input.split(" ") input.split input " " int totalPower = Integer.parseInt(split[0]); totalPower Integer.parseInt(split[0]) Integer.parseInt Integer split[0] split 0 int n = Integer.parseInt(split[1]); n Integer.parseInt(split[1]) Integer.parseInt Integer split[1] split 1 int[] n1 = new int[n]; n1 new int[n] n String a = br.readLine(); a br.readLine() br.readLine br String[] split1 = a.split(" "); split1 a.split(" ") a.split a " " int sum =0; sum 0 boolean canBreak = false; canBreak false for(int i=0;i<n;i++){
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      } {
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      } n1[i]= Integer.parseInt(split1[i]) n1[i] n1 i Integer.parseInt(split1[i]) Integer.parseInt Integer split1[i] split1 i sum+=n1[i] sum n1[i] n1 i if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      } totalPower<=sum totalPower sum {
          System.out.println("Yes");
          canBreak = true;
          break;
      } System.out.println("Yes") System.out.println System.out System System.out "Yes" canBreak = true canBreak true break; if(canBreak == false){
          System.out.println("No");
      } canBreak == false canBreak false {
          System.out.println("No");
      } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
      String[] split = input.split(" ");
        int totalPower = Integer.parseInt(split[0]);
        int n = Integer.parseInt(split[1]);
      int[] n1 = new int[n];
      String a = br.readLine();
      String[] split1 = a.split(" ");
      int sum =0;
      boolean canBreak = false;
      for(int i=0;i<n;i++){
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      }
      if(canBreak == false){
          System.out.println("No");
      }
     
    
}
} public class Main {
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
      String[] split = input.split(" ");
        int totalPower = Integer.parseInt(split[0]);
        int n = Integer.parseInt(split[1]);
      int[] n1 = new int[n];
      String a = br.readLine();
      String[] split1 = a.split(" ");
      int sum =0;
      boolean canBreak = false;
      for(int i=0;i<n;i++){
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      }
      if(canBreak == false){
          System.out.println("No");
      }
     
    
}
} Main
import java.util.*;
import java.io.*;
public class Main {
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = br.readLine();
      String[] split = input.split(" ");
        int totalPower = Integer.parseInt(split[0]);
        int n = Integer.parseInt(split[1]);
      int[] n1 = new int[n];
      String a = br.readLine();
      String[] split1 = a.split(" ");
      int sum =0;
      boolean canBreak = false;
      for(int i=0;i<n;i++){
        n1[i]= Integer.parseInt(split1[i]);
        sum+=n1[i];
        if(totalPower<=sum){
          System.out.println("Yes");
          canBreak = true;
          break;
      }
      }
      if(canBreak == false){
          System.out.println("No");
      }
     
    
}
}
