import java.util.*;

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

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