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