
import java.util.*;

public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long H = scanner.nextLong();
        long N = scanner.nextLong();
        long total = 0;
        for (int i=0;i<N;i++)
        {
            total+=scanner.nextLong();
        }
        System.out.println(total<H?"No":"Yes");
    }
} import java.util.*; util.* java public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long H = scanner.nextLong();
        long N = scanner.nextLong();
        long total = 0;
        for (int i=0;i<N;i++)
        {
            total+=scanner.nextLong();
        }
        System.out.println(total<H?"No":"Yes");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long H = scanner.nextLong();
        long N = scanner.nextLong();
        long total = 0;
        for (int i=0;i<N;i++)
        {
            total+=scanner.nextLong();
        }
        System.out.println(total<H?"No":"Yes");
    } main {
        Scanner scanner = new Scanner(System.in);
        long H = scanner.nextLong();
        long N = scanner.nextLong();
        long total = 0;
        for (int i=0;i<N;i++)
        {
            total+=scanner.nextLong();
        }
        System.out.println(total<H?"No":"Yes");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) long H = scanner.nextLong(); H scanner.nextLong() scanner.nextLong scanner long N = scanner.nextLong(); N scanner.nextLong() scanner.nextLong scanner long total = 0; total 0 for (int i=0;i<N;i++)
        {
            total+=scanner.nextLong();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            total+=scanner.nextLong();
        } {
            total+=scanner.nextLong();
        } total+=scanner.nextLong() total scanner.nextLong() scanner.nextLong scanner System.out.println(total<H?"No":"Yes") System.out.println System.out System System.out total<H?"No":"Yes" total<H total H "No" "Yes" String[] args args public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long H = scanner.nextLong();
        long N = scanner.nextLong();
        long total = 0;
        for (int i=0;i<N;i++)
        {
            total+=scanner.nextLong();
        }
        System.out.println(total<H?"No":"Yes");
    }
} public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long H = scanner.nextLong();
        long N = scanner.nextLong();
        long total = 0;
        for (int i=0;i<N;i++)
        {
            total+=scanner.nextLong();
        }
        System.out.println(total<H?"No":"Yes");
    }
} Main

import java.util.*;

public class Main{

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long H = scanner.nextLong();
        long N = scanner.nextLong();
        long total = 0;
        for (int i=0;i<N;i++)
        {
            total+=scanner.nextLong();
        }
        System.out.println(total<H?"No":"Yes");
    }
}