import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] line1 = sc.nextLine().split(" ");
        String[] line2 = sc.nextLine().split(" ");
        long H = Long.parseLong(line1[0]);
        long N = Long.parseLong(line1[1]);
        sc.close();

        long sum = 0;
        for (String string : line2) {
            sum += Long.parseLong(string);
        }

        String res = "No";

        if (sum >= H) {
            res = "Yes";
        }

        System.out.println(res);
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] line1 = sc.nextLine().split(" ");
        String[] line2 = sc.nextLine().split(" ");
        long H = Long.parseLong(line1[0]);
        long N = Long.parseLong(line1[1]);
        sc.close();

        long sum = 0;
        for (String string : line2) {
            sum += Long.parseLong(string);
        }

        String res = "No";

        if (sum >= H) {
            res = "Yes";
        }

        System.out.println(res);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] line1 = sc.nextLine().split(" ");
        String[] line2 = sc.nextLine().split(" ");
        long H = Long.parseLong(line1[0]);
        long N = Long.parseLong(line1[1]);
        sc.close();

        long sum = 0;
        for (String string : line2) {
            sum += Long.parseLong(string);
        }

        String res = "No";

        if (sum >= H) {
            res = "Yes";
        }

        System.out.println(res);
    } main {
        Scanner sc = new Scanner(System.in);
        String[] line1 = sc.nextLine().split(" ");
        String[] line2 = sc.nextLine().split(" ");
        long H = Long.parseLong(line1[0]);
        long N = Long.parseLong(line1[1]);
        sc.close();

        long sum = 0;
        for (String string : line2) {
            sum += Long.parseLong(string);
        }

        String res = "No";

        if (sum >= H) {
            res = "Yes";
        }

        System.out.println(res);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] line1 = sc.nextLine().split(" "); line1 sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " String[] line2 = sc.nextLine().split(" "); line2 sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " long H = Long.parseLong(line1[0]); H Long.parseLong(line1[0]) Long.parseLong Long line1[0] line1 0 long N = Long.parseLong(line1[1]); N Long.parseLong(line1[1]) Long.parseLong Long line1[1] line1 1 sc.close() sc.close sc long sum = 0; sum 0 for (String string : line2) {
            sum += Long.parseLong(string);
        } String string line2 {
            sum += Long.parseLong(string);
        } {
            sum += Long.parseLong(string);
        } sum += Long.parseLong(string) sum Long.parseLong(string) Long.parseLong Long string String res = "No"; res "No" if (sum >= H) {
            res = "Yes";
        } sum >= H sum H {
            res = "Yes";
        } res = "Yes" res "Yes" System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] line1 = sc.nextLine().split(" ");
        String[] line2 = sc.nextLine().split(" ");
        long H = Long.parseLong(line1[0]);
        long N = Long.parseLong(line1[1]);
        sc.close();

        long sum = 0;
        for (String string : line2) {
            sum += Long.parseLong(string);
        }

        String res = "No";

        if (sum >= H) {
            res = "Yes";
        }

        System.out.println(res);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] line1 = sc.nextLine().split(" ");
        String[] line2 = sc.nextLine().split(" ");
        long H = Long.parseLong(line1[0]);
        long N = Long.parseLong(line1[1]);
        sc.close();

        long sum = 0;
        for (String string : line2) {
            sum += Long.parseLong(string);
        }

        String res = "No";

        if (sum >= H) {
            res = "Yes";
        }

        System.out.println(res);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] line1 = sc.nextLine().split(" ");
        String[] line2 = sc.nextLine().split(" ");
        long H = Long.parseLong(line1[0]);
        long N = Long.parseLong(line1[1]);
        sc.close();

        long sum = 0;
        for (String string : line2) {
            sum += Long.parseLong(string);
        }

        String res = "No";

        if (sum >= H) {
            res = "Yes";
        }

        System.out.println(res);
    }

}