import java.util.*;

class Main{

    public static void main(String args[]) throws Exception{
        Main main = new Main();
    }

    public Main(){
        Scanner scanner = new Scanner(System.in);
        int H,N;
        H = Integer.parseInt(scanner.next());
        N = Integer.parseInt(scanner.next());
        int total = 0;
        for(int i=0;i<N;i++){
            total += Integer.parseInt(scanner.next());

            if(total >= H){
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    }
} import java.util.*; util.* java class Main{

    public static void main(String args[]) throws Exception{
        Main main = new Main();
    }

    public Main(){
        Scanner scanner = new Scanner(System.in);
        int H,N;
        H = Integer.parseInt(scanner.next());
        N = Integer.parseInt(scanner.next());
        int total = 0;
        for(int i=0;i<N;i++){
            total += Integer.parseInt(scanner.next());

            if(total >= H){
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    }
} Main public static void main(String args[]) throws Exception{
        Main main = new Main();
    } main {
        Main main = new Main();
    } Main main = new Main(); main new Main() String args[] args public Main(){
        Scanner scanner = new Scanner(System.in);
        int H,N;
        H = Integer.parseInt(scanner.next());
        N = Integer.parseInt(scanner.next());
        int total = 0;
        for(int i=0;i<N;i++){
            total += Integer.parseInt(scanner.next());

            if(total >= H){
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    } Main {
        Scanner scanner = new Scanner(System.in);
        int H,N;
        H = Integer.parseInt(scanner.next());
        N = Integer.parseInt(scanner.next());
        int total = 0;
        for(int i=0;i<N;i++){
            total += Integer.parseInt(scanner.next());

            if(total >= H){
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int H H N; N H = Integer.parseInt(scanner.next()) H Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner N = Integer.parseInt(scanner.next()) N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int total = 0; total 0 for(int i=0;i<N;i++){
            total += Integer.parseInt(scanner.next());

            if(total >= H){
                System.out.println("Yes");
                return;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            total += Integer.parseInt(scanner.next());

            if(total >= H){
                System.out.println("Yes");
                return;
            }
        } {
            total += Integer.parseInt(scanner.next());

            if(total >= H){
                System.out.println("Yes");
                return;
            }
        } total += Integer.parseInt(scanner.next()) total Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner if(total >= H){
                System.out.println("Yes");
                return;
            } total >= H total H {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No"
import java.util.*;

class Main{

    public static void main(String args[]) throws Exception{
        Main main = new Main();
    }

    public Main(){
        Scanner scanner = new Scanner(System.in);
        int H,N;
        H = Integer.parseInt(scanner.next());
        N = Integer.parseInt(scanner.next());
        int total = 0;
        for(int i=0;i<N;i++){
            total += Integer.parseInt(scanner.next());

            if(total >= H){
                System.out.println("Yes");
                return;
            }
        }

        System.out.println("No");
    }
}
