import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int j, H, N, T=0;
        int[] A = new int[100000];
        H = scan.nextInt();
        N = scan.nextInt();
        for(j=0; j<N; j++){
            A[j] = scan.nextInt();
        }
        for(j=0; j<N; j++){
            T = T+A[j];
        }
        if(T>=H) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int j, H, N, T=0;
        int[] A = new int[100000];
        H = scan.nextInt();
        N = scan.nextInt();
        for(j=0; j<N; j++){
            A[j] = scan.nextInt();
        }
        for(j=0; j<N; j++){
            T = T+A[j];
        }
        if(T>=H) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int j, H, N, T=0;
        int[] A = new int[100000];
        H = scan.nextInt();
        N = scan.nextInt();
        for(j=0; j<N; j++){
            A[j] = scan.nextInt();
        }
        for(j=0; j<N; j++){
            T = T+A[j];
        }
        if(T>=H) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int j, H, N, T=0;
        int[] A = new int[100000];
        H = scan.nextInt();
        N = scan.nextInt();
        for(j=0; j<N; j++){
            A[j] = scan.nextInt();
        }
        for(j=0; j<N; j++){
            T = T+A[j];
        }
        if(T>=H) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int j j H H N N T=0; T 0 int[] A = new int[100000]; A new int[100000] 100000 H = scan.nextInt() H scan.nextInt() scan.nextInt scan N = scan.nextInt() N scan.nextInt() scan.nextInt scan for(j=0; j<N; j++){
            A[j] = scan.nextInt();
        } j=0; j=0 j 0 j<N j N j++ j++ j {
            A[j] = scan.nextInt();
        } {
            A[j] = scan.nextInt();
        } A[j] = scan.nextInt() A[j] A j scan.nextInt() scan.nextInt scan for(j=0; j<N; j++){
            T = T+A[j];
        } j=0; j=0 j 0 j<N j N j++ j++ j {
            T = T+A[j];
        } {
            T = T+A[j];
        } T = T+A[j] T T+A[j] T A[j] A j if(T>=H) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } T>=H T H {
            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 class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int j, H, N, T=0;
        int[] A = new int[100000];
        H = scan.nextInt();
        N = scan.nextInt();
        for(j=0; j<N; j++){
            A[j] = scan.nextInt();
        }
        for(j=0; j<N; j++){
            T = T+A[j];
        }
        if(T>=H) {
            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 j, H, N, T=0;
        int[] A = new int[100000];
        H = scan.nextInt();
        N = scan.nextInt();
        for(j=0; j<N; j++){
            A[j] = scan.nextInt();
        }
        for(j=0; j<N; j++){
            T = T+A[j];
        }
        if(T>=H) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int j, H, N, T=0;
        int[] A = new int[100000];
        H = scan.nextInt();
        N = scan.nextInt();
        for(j=0; j<N; j++){
            A[j] = scan.nextInt();
        }
        for(j=0; j<N; j++){
            T = T+A[j];
        }
        if(T>=H) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}