import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        int count = 0;
        boolean flag = false;
        for (int i = 0; i < N; i++) {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        int count = 0;
        boolean flag = false;
        for (int i = 0; i < N; i++) {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        int count = 0;
        boolean flag = false;
        for (int i = 0; i < N; i++) {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        int count = 0;
        boolean flag = false;
        for (int i = 0; i < N; i++) {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int H = sc.nextInt(); H sc.nextInt() sc.nextInt sc int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int count = 0; count 0 boolean flag = false; flag false for (int i = 0; i < N; i++) {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        } {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        } count += sc.nextInt() count sc.nextInt() sc.nextInt sc if (H <= count) {
                flag = true;
            } H <= count H count {
                flag = true;
            } flag = true flag true System.out.println(flag ? "Yes" : "No") System.out.println System.out System System.out flag ? "Yes" : "No" flag "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        int count = 0;
        boolean flag = false;
        for (int i = 0; i < N; i++) {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        int count = 0;
        boolean flag = false;
        for (int i = 0; i < N; i++) {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        int count = 0;
        boolean flag = false;
        for (int i = 0; i < N; i++) {
            count += sc.nextInt();
            if (H <= count) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
}