import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        long k = sc.nextInt();
        List<Integer> ll = new ArrayList<>();
        for (int i = 0; i < k; i++) {
            ll.add(sc.nextInt());
        }
        long ans2 = 0;
        for (int i = 0; i < k; i++) {
            ans2 += ll.get(i);
        }
        if(ans2 >= n){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }


    public static int log2(long x) {
        return (int) (Math.log(x) / Math.log(2));
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        long k = sc.nextInt();
        List<Integer> ll = new ArrayList<>();
        for (int i = 0; i < k; i++) {
            ll.add(sc.nextInt());
        }
        long ans2 = 0;
        for (int i = 0; i < k; i++) {
            ans2 += ll.get(i);
        }
        if(ans2 >= n){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }


    public static int log2(long x) {
        return (int) (Math.log(x) / Math.log(2));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        long k = sc.nextInt();
        List<Integer> ll = new ArrayList<>();
        for (int i = 0; i < k; i++) {
            ll.add(sc.nextInt());
        }
        long ans2 = 0;
        for (int i = 0; i < k; i++) {
            ans2 += ll.get(i);
        }
        if(ans2 >= n){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        long k = sc.nextInt();
        List<Integer> ll = new ArrayList<>();
        for (int i = 0; i < k; i++) {
            ll.add(sc.nextInt());
        }
        long ans2 = 0;
        for (int i = 0; i < k; i++) {
            ans2 += ll.get(i);
        }
        if(ans2 >= n){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long n = sc.nextInt(); n sc.nextInt() sc.nextInt sc long k = sc.nextInt(); k sc.nextInt() sc.nextInt sc List<Integer> ll = new ArrayList<>(); ll new ArrayList<>() for (int i = 0; i < k; i++) {
            ll.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
            ll.add(sc.nextInt());
        } {
            ll.add(sc.nextInt());
        } ll.add(sc.nextInt()) ll.add ll sc.nextInt() sc.nextInt sc long ans2 = 0; ans2 0 for (int i = 0; i < k; i++) {
            ans2 += ll.get(i);
        } int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
            ans2 += ll.get(i);
        } {
            ans2 += ll.get(i);
        } ans2 += ll.get(i) ans2 ll.get(i) ll.get ll i if(ans2 >= n){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } ans2 >= n ans2 n {
            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 public static int log2(long x) {
        return (int) (Math.log(x) / Math.log(2));
    } log2 {
        return (int) (Math.log(x) / Math.log(2));
    } return (int) (Math.log(x) / Math.log(2)); (int) (Math.log(x) / Math.log(2)) Math.log(x) Math.log Math x Math.log(2) Math.log Math 2 long x x public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        long k = sc.nextInt();
        List<Integer> ll = new ArrayList<>();
        for (int i = 0; i < k; i++) {
            ll.add(sc.nextInt());
        }
        long ans2 = 0;
        for (int i = 0; i < k; i++) {
            ans2 += ll.get(i);
        }
        if(ans2 >= n){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }


    public static int log2(long x) {
        return (int) (Math.log(x) / Math.log(2));
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        long k = sc.nextInt();
        List<Integer> ll = new ArrayList<>();
        for (int i = 0; i < k; i++) {
            ll.add(sc.nextInt());
        }
        long ans2 = 0;
        for (int i = 0; i < k; i++) {
            ans2 += ll.get(i);
        }
        if(ans2 >= n){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }


    public static int log2(long x) {
        return (int) (Math.log(x) / Math.log(2));
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        long k = sc.nextInt();
        List<Integer> ll = new ArrayList<>();
        for (int i = 0; i < k; i++) {
            ll.add(sc.nextInt());
        }
        long ans2 = 0;
        for (int i = 0; i < k; i++) {
            ans2 += ll.get(i);
        }
        if(ans2 >= n){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }


    public static int log2(long x) {
        return (int) (Math.log(x) / Math.log(2));
    }
}
