import java.util.*;

class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int hitPoint = sc.nextInt();
        int skillNum = sc.nextInt();
        int[] powers = new int[skillNum];
        int totalDamage = 0;
        
        for (int i = 0; i < skillNum; i++) {
            powers[i] = sc.nextInt();
            totalDamage += powers[i];
        }     
        
        if (totalDamage >= hitPoint) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }
}
         import java.util.*; util.* java class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int hitPoint = sc.nextInt();
        int skillNum = sc.nextInt();
        int[] powers = new int[skillNum];
        int totalDamage = 0;
        
        for (int i = 0; i < skillNum; i++) {
            powers[i] = sc.nextInt();
            totalDamage += powers[i];
        }     
        
        if (totalDamage >= hitPoint) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }
} Main public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int hitPoint = sc.nextInt();
        int skillNum = sc.nextInt();
        int[] powers = new int[skillNum];
        int totalDamage = 0;
        
        for (int i = 0; i < skillNum; i++) {
            powers[i] = sc.nextInt();
            totalDamage += powers[i];
        }     
        
        if (totalDamage >= hitPoint) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        
        int hitPoint = sc.nextInt();
        int skillNum = sc.nextInt();
        int[] powers = new int[skillNum];
        int totalDamage = 0;
        
        for (int i = 0; i < skillNum; i++) {
            powers[i] = sc.nextInt();
            totalDamage += powers[i];
        }     
        
        if (totalDamage >= hitPoint) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int hitPoint = sc.nextInt(); hitPoint sc.nextInt() sc.nextInt sc int skillNum = sc.nextInt(); skillNum sc.nextInt() sc.nextInt sc int[] powers = new int[skillNum]; powers new int[skillNum] skillNum int totalDamage = 0; totalDamage 0 for (int i = 0; i < skillNum; i++) {
            powers[i] = sc.nextInt();
            totalDamage += powers[i];
        } int i = 0; int i = 0; i 0 i < skillNum i skillNum i++ i++ i {
            powers[i] = sc.nextInt();
            totalDamage += powers[i];
        } {
            powers[i] = sc.nextInt();
            totalDamage += powers[i];
        } powers[i] = sc.nextInt() powers[i] powers i sc.nextInt() sc.nextInt sc totalDamage += powers[i] totalDamage powers[i] powers i if (totalDamage >= hitPoint) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } totalDamage >= hitPoint totalDamage hitPoint {
            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
import java.util.*;

class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int hitPoint = sc.nextInt();
        int skillNum = sc.nextInt();
        int[] powers = new int[skillNum];
        int totalDamage = 0;
        
        for (int i = 0; i < skillNum; i++) {
            powers[i] = sc.nextInt();
            totalDamage += powers[i];
        }     
        
        if (totalDamage >= hitPoint) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }
}
        