import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int h = Integer.parseInt(sc.next());
        int n = Integer.parseInt(sc.next());
        int[] an = new int[n];
        for(int i=0;i<n;i++){
            an[i] = Integer.parseInt(sc.next());
        }
        int sum  = 0;
        for(int j : an){
            sum = sum + j;
        }
        if(sum < h){
            System.out.println("No");
        }else{
            System.out.println("Yes");

        }

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int h = Integer.parseInt(sc.next());
        int n = Integer.parseInt(sc.next());
        int[] an = new int[n];
        for(int i=0;i<n;i++){
            an[i] = Integer.parseInt(sc.next());
        }
        int sum  = 0;
        for(int j : an){
            sum = sum + j;
        }
        if(sum < h){
            System.out.println("No");
        }else{
            System.out.println("Yes");

        }

    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int h = Integer.parseInt(sc.next());
        int n = Integer.parseInt(sc.next());
        int[] an = new int[n];
        for(int i=0;i<n;i++){
            an[i] = Integer.parseInt(sc.next());
        }
        int sum  = 0;
        for(int j : an){
            sum = sum + j;
        }
        if(sum < h){
            System.out.println("No");
        }else{
            System.out.println("Yes");

        }

    } main {
        Scanner sc = new Scanner(System.in);
        int h = Integer.parseInt(sc.next());
        int n = Integer.parseInt(sc.next());
        int[] an = new int[n];
        for(int i=0;i<n;i++){
            an[i] = Integer.parseInt(sc.next());
        }
        int sum  = 0;
        for(int j : an){
            sum = sum + j;
        }
        if(sum < h){
            System.out.println("No");
        }else{
            System.out.println("Yes");

        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int h = Integer.parseInt(sc.next()); h Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] an = new int[n]; an new int[n] n for(int i=0;i<n;i++){
            an[i] = Integer.parseInt(sc.next());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            an[i] = Integer.parseInt(sc.next());
        } {
            an[i] = Integer.parseInt(sc.next());
        } an[i] = Integer.parseInt(sc.next()) an[i] an i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int sum  = 0; sum 0 for(int j : an){
            sum = sum + j;
        } int j an {
            sum = sum + j;
        } {
            sum = sum + j;
        } sum = sum + j sum sum + j sum j if(sum < h){
            System.out.println("No");
        }else{
            System.out.println("Yes");

        } sum < h sum h {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");

        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int h = Integer.parseInt(sc.next());
        int n = Integer.parseInt(sc.next());
        int[] an = new int[n];
        for(int i=0;i<n;i++){
            an[i] = Integer.parseInt(sc.next());
        }
        int sum  = 0;
        for(int j : an){
            sum = sum + j;
        }
        if(sum < h){
            System.out.println("No");
        }else{
            System.out.println("Yes");

        }

    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int h = Integer.parseInt(sc.next());
        int n = Integer.parseInt(sc.next());
        int[] an = new int[n];
        for(int i=0;i<n;i++){
            an[i] = Integer.parseInt(sc.next());
        }
        int sum  = 0;
        for(int j : an){
            sum = sum + j;
        }
        if(sum < h){
            System.out.println("No");
        }else{
            System.out.println("Yes");

        }

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int h = Integer.parseInt(sc.next());
        int n = Integer.parseInt(sc.next());
        int[] an = new int[n];
        for(int i=0;i<n;i++){
            an[i] = Integer.parseInt(sc.next());
        }
        int sum  = 0;
        for(int j : an){
            sum = sum + j;
        }
        if(sum < h){
            System.out.println("No");
        }else{
            System.out.println("Yes");

        }

    }
}