import java.util.Scanner;

public class Main {

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

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

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

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

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

} public class Main {

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

} Main
import java.util.Scanner;

public class Main {

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

}
