import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        String line2 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        String[] array2 = line2.split(" ");
        int hp = Integer.parseInt(array1[0]);
        int n = Integer.parseInt(array1[1]);
        
        
        long sum = 0;
        String result = "No";
        
        for(int i = 0; i < n; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        }
        
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        String line2 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        String[] array2 = line2.split(" ");
        int hp = Integer.parseInt(array1[0]);
        int n = Integer.parseInt(array1[1]);
        
        
        long sum = 0;
        String result = "No";
        
        for(int i = 0; i < n; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        }
        
        System.out.println(result);
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        String line2 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        String[] array2 = line2.split(" ");
        int hp = Integer.parseInt(array1[0]);
        int n = Integer.parseInt(array1[1]);
        
        
        long sum = 0;
        String result = "No";
        
        for(int i = 0; i < n; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        }
        
        System.out.println(result);
    } main {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        String line2 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        String[] array2 = line2.split(" ");
        int hp = Integer.parseInt(array1[0]);
        int n = Integer.parseInt(array1[1]);
        
        
        long sum = 0;
        String result = "No";
        
        for(int i = 0; i < n; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        }
        
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line1 = sc.nextLine(); line1 sc.nextLine() sc.nextLine sc String line2 = sc.nextLine(); line2 sc.nextLine() sc.nextLine sc String[] array1 = line1.split(" "); array1 line1.split(" ") line1.split line1 " " String[] array2 = line2.split(" "); array2 line2.split(" ") line2.split line2 " " int hp = Integer.parseInt(array1[0]); hp Integer.parseInt(array1[0]) Integer.parseInt Integer array1[0] array1 0 int n = Integer.parseInt(array1[1]); n Integer.parseInt(array1[1]) Integer.parseInt Integer array1[1] array1 1 long sum = 0; sum 0 String result = "No"; result "No" for(int i = 0; i < n; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        } {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        } int buf = Integer.parseInt(array2[i]); buf Integer.parseInt(array2[i]) Integer.parseInt Integer array2[i] array2 i sum += buf sum buf if(sum >= hp)
            {
                result = "Yes";
                break;
            } sum >= hp sum hp {
                result = "Yes";
                break;
            } result = "Yes" result "Yes" break; System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        String line2 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        String[] array2 = line2.split(" ");
        int hp = Integer.parseInt(array1[0]);
        int n = Integer.parseInt(array1[1]);
        
        
        long sum = 0;
        String result = "No";
        
        for(int i = 0; i < n; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        }
        
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        String line2 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        String[] array2 = line2.split(" ");
        int hp = Integer.parseInt(array1[0]);
        int n = Integer.parseInt(array1[1]);
        
        
        long sum = 0;
        String result = "No";
        
        for(int i = 0; i < n; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        }
        
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        String line2 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        String[] array2 = line2.split(" ");
        int hp = Integer.parseInt(array1[0]);
        int n = Integer.parseInt(array1[1]);
        
        
        long sum = 0;
        String result = "No";
        
        for(int i = 0; i < n; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            sum += buf;
            if(sum >= hp)
            {
                result = "Yes";
                break;
            }
        }
        
        System.out.println(result);
    }
}
