import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int h = Integer.parseInt(input1[0]);
        int n = Integer.parseInt(input1[1]);
        
        String[] input2 = br.readLine().split(" ");
        int[] numbers = new int[n];
        int sum = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        }
        
        out.println(sum >= h ? "Yes" : "No");
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int h = Integer.parseInt(input1[0]);
        int n = Integer.parseInt(input1[1]);
        
        String[] input2 = br.readLine().split(" ");
        int[] numbers = new int[n];
        int sum = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        }
        
        out.println(sum >= h ? "Yes" : "No");
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int h = Integer.parseInt(input1[0]);
        int n = Integer.parseInt(input1[1]);
        
        String[] input2 = br.readLine().split(" ");
        int[] numbers = new int[n];
        int sum = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        }
        
        out.println(sum >= h ? "Yes" : "No");
        out.close();
        
    } main {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int h = Integer.parseInt(input1[0]);
        int n = Integer.parseInt(input1[1]);
        
        String[] input2 = br.readLine().split(" ");
        int[] numbers = new int[n];
        int sum = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        }
        
        out.println(sum >= h ? "Yes" : "No");
        out.close();
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) String[] input1 = br.readLine().split(" "); input1 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int h = Integer.parseInt(input1[0]); h Integer.parseInt(input1[0]) Integer.parseInt Integer input1[0] input1 0 int n = Integer.parseInt(input1[1]); n Integer.parseInt(input1[1]) Integer.parseInt Integer input1[1] input1 1 String[] input2 = br.readLine().split(" "); input2 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] numbers = new int[n]; numbers new int[n] n int sum = 0; sum 0 for(int i = 0; i < n; i++){
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        } {
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        } numbers[i] = Integer.parseInt(input2[i]) numbers[i] numbers i Integer.parseInt(input2[i]) Integer.parseInt Integer input2[i] input2 i sum += numbers[i] sum numbers[i] numbers i out.println(sum >= h ? "Yes" : "No") out.println out sum >= h ? "Yes" : "No" sum >= h sum h "Yes" "No" out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int h = Integer.parseInt(input1[0]);
        int n = Integer.parseInt(input1[1]);
        
        String[] input2 = br.readLine().split(" ");
        int[] numbers = new int[n];
        int sum = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        }
        
        out.println(sum >= h ? "Yes" : "No");
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int h = Integer.parseInt(input1[0]);
        int n = Integer.parseInt(input1[1]);
        
        String[] input2 = br.readLine().split(" ");
        int[] numbers = new int[n];
        int sum = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        }
        
        out.println(sum >= h ? "Yes" : "No");
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int h = Integer.parseInt(input1[0]);
        int n = Integer.parseInt(input1[1]);
        
        String[] input2 = br.readLine().split(" ");
        int[] numbers = new int[n];
        int sum = 0;
        
        for(int i = 0; i < n; i++){
            numbers[i] = Integer.parseInt(input2[i]);
            sum += numbers[i];
        }
        
        out.println(sum >= h ? "Yes" : "No");
        out.close();
        
    }
}