/* package codechef; // don't place package name! */

import javax.swing.*;
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int H = s.nextInt();
        int N = s.nextInt();
        int A[] = new int[N];
        int sum=0;
        for(int i=0; i<N; i++)
        {
            A[i] = s.nextInt();
            sum+=A[i];
        }
        if(sum>=H)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
} import javax.swing.*; swing.* javax import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int H = s.nextInt();
        int N = s.nextInt();
        int A[] = new int[N];
        int sum=0;
        for(int i=0; i<N; i++)
        {
            A[i] = s.nextInt();
            sum+=A[i];
        }
        if(sum>=H)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
} Main public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int H = s.nextInt();
        int N = s.nextInt();
        int A[] = new int[N];
        int sum=0;
        for(int i=0; i<N; i++)
        {
            A[i] = s.nextInt();
            sum+=A[i];
        }
        if(sum>=H)
            System.out.println("Yes");
        else
            System.out.println("No");
    } main {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int H = s.nextInt();
        int N = s.nextInt();
        int A[] = new int[N];
        int sum=0;
        for(int i=0; i<N; i++)
        {
            A[i] = s.nextInt();
            sum+=A[i];
        }
        if(sum>=H)
            System.out.println("Yes");
        else
            System.out.println("No");
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int H = s.nextInt(); H s.nextInt() s.nextInt s int N = s.nextInt(); N s.nextInt() s.nextInt s int A[] = new int[N]; A new int[N] N int sum=0; sum 0 for(int i=0; i<N; i++)
        {
            A[i] = s.nextInt();
            sum+=A[i];
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            A[i] = s.nextInt();
            sum+=A[i];
        } {
            A[i] = s.nextInt();
            sum+=A[i];
        } A[i] = s.nextInt() A[i] A i s.nextInt() s.nextInt s sum+=A[i] sum A[i] A i if(sum>=H)
            System.out.println("Yes");
        else
            System.out.println("No"); sum>=H sum H System.out.println("Yes") System.out.println System.out System System.out "Yes" 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 java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int H = s.nextInt();
        int N = s.nextInt();
        int A[] = new int[N];
        int sum=0;
        for(int i=0; i<N; i++)
        {
            A[i] = s.nextInt();
            sum+=A[i];
        }
        if(sum>=H)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
} public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int H = s.nextInt();
        int N = s.nextInt();
        int A[] = new int[N];
        int sum=0;
        for(int i=0; i<N; i++)
        {
            A[i] = s.nextInt();
            sum+=A[i];
        }
        if(sum>=H)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
} Main
/* package codechef; // don't place package name! */

import javax.swing.*;
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner s = new Scanner(System.in);
        int H = s.nextInt();
        int N = s.nextInt();
        int A[] = new int[N];
        int sum=0;
        for(int i=0; i<N; i++)
        {
            A[i] = s.nextInt();
            sum+=A[i];
        }
        if(sum>=H)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
}
