import java.util.Scanner;

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

class Main
{
    public static void main(String args[])
    {
        Scanner s = new Scanner(System.in);
        int h = s.nextInt();
        int n = s.nextInt();
        int sum = 0;
        for(int i=0; i<n; i++)
        {
            sum += s.nextInt();
        }
        if((h-sum)>0)
        {
            System.out.println("No");
        }
        else
        {
            System.out.println("Yes");
        }
    }
}