import java.util.Scanner;

class Main{
    public static void main(String[] args) {
        int H,N,A=0;
        Scanner sc=new Scanner(System.in);
        H=sc.nextInt();
        N=sc.nextInt();
        for(int i=0;i<N;i++){
            A+=sc.nextInt();
        }
        if(H<=A)
        System.out.print("Yes");
        else
        System.out.print("No");
        sc.close();
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        int H,N,A=0;
        Scanner sc=new Scanner(System.in);
        H=sc.nextInt();
        N=sc.nextInt();
        for(int i=0;i<N;i++){
            A+=sc.nextInt();
        }
        if(H<=A)
        System.out.print("Yes");
        else
        System.out.print("No");
        sc.close();
    }
} Main public static void main(String[] args) {
        int H,N,A=0;
        Scanner sc=new Scanner(System.in);
        H=sc.nextInt();
        N=sc.nextInt();
        for(int i=0;i<N;i++){
            A+=sc.nextInt();
        }
        if(H<=A)
        System.out.print("Yes");
        else
        System.out.print("No");
        sc.close();
    } main {
        int H,N,A=0;
        Scanner sc=new Scanner(System.in);
        H=sc.nextInt();
        N=sc.nextInt();
        for(int i=0;i<N;i++){
            A+=sc.nextInt();
        }
        if(H<=A)
        System.out.print("Yes");
        else
        System.out.print("No");
        sc.close();
    } int H H N N A=0; A 0 Scanner sc=new Scanner(System.in); sc new Scanner(System.in) H=sc.nextInt() H sc.nextInt() sc.nextInt sc N=sc.nextInt() N sc.nextInt() sc.nextInt sc for(int i=0;i<N;i++){
            A+=sc.nextInt();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            A+=sc.nextInt();
        } {
            A+=sc.nextInt();
        } A+=sc.nextInt() A sc.nextInt() sc.nextInt sc if(H<=A)
        System.out.print("Yes");
        else
        System.out.print("No"); H<=A H A System.out.print("Yes") System.out.print System.out System System.out "Yes" System.out.print("No") System.out.print System.out System System.out "No" sc.close() sc.close sc String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args) {
        int H,N,A=0;
        Scanner sc=new Scanner(System.in);
        H=sc.nextInt();
        N=sc.nextInt();
        for(int i=0;i<N;i++){
            A+=sc.nextInt();
        }
        if(H<=A)
        System.out.print("Yes");
        else
        System.out.print("No");
        sc.close();
    }
}