import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int power = Integer.parseInt(scan.next());
        int cnt = Integer.parseInt(scan.next());

        //int second = Integer.parseInt(scan.next());
        //long in = Long.parseLong(scan.next());
        //String s = scan.next();
        //String second = scan.next();
        int sum = 0;
        for (int i = 0; i <cnt; i++) {
            sum += Integer.parseInt(scan.next());
        }
        result(sum>=power);
    }

    public static void result(boolean flg) {
        if(flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int power = Integer.parseInt(scan.next());
        int cnt = Integer.parseInt(scan.next());

        //int second = Integer.parseInt(scan.next());
        //long in = Long.parseLong(scan.next());
        //String s = scan.next();
        //String second = scan.next();
        int sum = 0;
        for (int i = 0; i <cnt; i++) {
            sum += Integer.parseInt(scan.next());
        }
        result(sum>=power);
    }

    public static void result(boolean flg) {
        if(flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int power = Integer.parseInt(scan.next());
        int cnt = Integer.parseInt(scan.next());

        //int second = Integer.parseInt(scan.next());
        //long in = Long.parseLong(scan.next());
        //String s = scan.next();
        //String second = scan.next();
        int sum = 0;
        for (int i = 0; i <cnt; i++) {
            sum += Integer.parseInt(scan.next());
        }
        result(sum>=power);
    } main {
        Scanner scan = new Scanner(System.in);
        int power = Integer.parseInt(scan.next());
        int cnt = Integer.parseInt(scan.next());

        //int second = Integer.parseInt(scan.next());
        //long in = Long.parseLong(scan.next());
        //String s = scan.next();
        //String second = scan.next();
        int sum = 0;
        for (int i = 0; i <cnt; i++) {
            sum += Integer.parseInt(scan.next());
        }
        result(sum>=power);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int power = Integer.parseInt(scan.next()); power Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int cnt = Integer.parseInt(scan.next()); cnt Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int sum = 0; sum 0 for (int i = 0; i <cnt; i++) {
            sum += Integer.parseInt(scan.next());
        } int i = 0; int i = 0; i 0 i <cnt i cnt i++ i++ i {
            sum += Integer.parseInt(scan.next());
        } {
            sum += Integer.parseInt(scan.next());
        } sum += Integer.parseInt(scan.next()) sum Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan result(sum>=power) result sum>=power sum power String[] args args public static void result(boolean flg) {
        if(flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } result {
        if(flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } if(flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } flg {
            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" boolean flg flg public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int power = Integer.parseInt(scan.next());
        int cnt = Integer.parseInt(scan.next());

        //int second = Integer.parseInt(scan.next());
        //long in = Long.parseLong(scan.next());
        //String s = scan.next();
        //String second = scan.next();
        int sum = 0;
        for (int i = 0; i <cnt; i++) {
            sum += Integer.parseInt(scan.next());
        }
        result(sum>=power);
    }

    public static void result(boolean flg) {
        if(flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int power = Integer.parseInt(scan.next());
        int cnt = Integer.parseInt(scan.next());

        //int second = Integer.parseInt(scan.next());
        //long in = Long.parseLong(scan.next());
        //String s = scan.next();
        //String second = scan.next();
        int sum = 0;
        for (int i = 0; i <cnt; i++) {
            sum += Integer.parseInt(scan.next());
        }
        result(sum>=power);
    }

    public static void result(boolean flg) {
        if(flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int power = Integer.parseInt(scan.next());
        int cnt = Integer.parseInt(scan.next());

        //int second = Integer.parseInt(scan.next());
        //long in = Long.parseLong(scan.next());
        //String s = scan.next();
        //String second = scan.next();
        int sum = 0;
        for (int i = 0; i <cnt; i++) {
            sum += Integer.parseInt(scan.next());
        }
        result(sum>=power);
    }

    public static void result(boolean flg) {
        if(flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
