import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner( System.in );

        int health = Integer.parseInt(scan.next()); 
        int varN   = Integer.parseInt(scan.next());
        int attack = 0;

        boolean flag = false;

        for(int i=0; i<varN; i++){
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        }

        if(flag){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner( System.in );

        int health = Integer.parseInt(scan.next()); 
        int varN   = Integer.parseInt(scan.next());
        int attack = 0;

        boolean flag = false;

        for(int i=0; i<varN; i++){
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        }

        if(flag){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner( System.in );

        int health = Integer.parseInt(scan.next()); 
        int varN   = Integer.parseInt(scan.next());
        int attack = 0;

        boolean flag = false;

        for(int i=0; i<varN; i++){
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        }

        if(flag){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    } main {
        Scanner scan = new Scanner( System.in );

        int health = Integer.parseInt(scan.next()); 
        int varN   = Integer.parseInt(scan.next());
        int attack = 0;

        boolean flag = false;

        for(int i=0; i<varN; i++){
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        }

        if(flag){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    } Scanner scan = new Scanner( System.in ); scan new Scanner( System.in ) int health = Integer.parseInt(scan.next()); health Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int varN   = Integer.parseInt(scan.next()); varN Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int attack = 0; attack 0 boolean flag = false; flag false for(int i=0; i<varN; i++){
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        } int i=0; int i=0; i 0 i<varN i varN i++ i++ i {
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        } {
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        } attack = Integer.parseInt(scan.next()) attack Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan health -= attack health attack if(health <= 0){
                flag = true;
                break;
            } health <= 0 health 0 {
                flag = true;
                break;
            } flag = true flag true break; if(flag){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } flag {
            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 health = Integer.parseInt(scan.next()); 
        int varN   = Integer.parseInt(scan.next());
        int attack = 0;

        boolean flag = false;

        for(int i=0; i<varN; i++){
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        }

        if(flag){
            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 health = Integer.parseInt(scan.next()); 
        int varN   = Integer.parseInt(scan.next());
        int attack = 0;

        boolean flag = false;

        for(int i=0; i<varN; i++){
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        }

        if(flag){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner( System.in );

        int health = Integer.parseInt(scan.next()); 
        int varN   = Integer.parseInt(scan.next());
        int attack = 0;

        boolean flag = false;

        for(int i=0; i<varN; i++){
            attack = Integer.parseInt(scan.next());
            health -= attack;

            if(health <= 0){
                flag = true;
                break;
            }
        }

        if(flag){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
}