import java.util.Scanner;

public class Main {
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int H=sc.nextInt();
        int N=sc.nextInt();
      //  int [] moves=new int[N];
        int sum_of_moves=0;
        for(int i=0;i<N;i++)
           // moves[i]=sc.nextInt();
            sum_of_moves+=sc.nextInt();
        String output=(sum_of_moves>=H)?"Yes":"No";
        System.out.print(output);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int H=sc.nextInt();
        int N=sc.nextInt();
      //  int [] moves=new int[N];
        int sum_of_moves=0;
        for(int i=0;i<N;i++)
           // moves[i]=sc.nextInt();
            sum_of_moves+=sc.nextInt();
        String output=(sum_of_moves>=H)?"Yes":"No";
        System.out.print(output);
    }
} Main public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int H=sc.nextInt();
        int N=sc.nextInt();
      //  int [] moves=new int[N];
        int sum_of_moves=0;
        for(int i=0;i<N;i++)
           // moves[i]=sc.nextInt();
            sum_of_moves+=sc.nextInt();
        String output=(sum_of_moves>=H)?"Yes":"No";
        System.out.print(output);
    } main {
        Scanner sc=new Scanner(System.in);
        int H=sc.nextInt();
        int N=sc.nextInt();
      //  int [] moves=new int[N];
        int sum_of_moves=0;
        for(int i=0;i<N;i++)
           // moves[i]=sc.nextInt();
            sum_of_moves+=sc.nextInt();
        String output=(sum_of_moves>=H)?"Yes":"No";
        System.out.print(output);
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int H=sc.nextInt(); H sc.nextInt() sc.nextInt sc int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int sum_of_moves=0; sum_of_moves 0 for(int i=0;i<N;i++)
           // moves[i]=sc.nextInt();
            sum_of_moves+=sc.nextInt(); int i=0; int i=0; i 0 i<N i N i++ i++ i sum_of_moves+=sc.nextInt(); sum_of_moves+=sc.nextInt() sum_of_moves sc.nextInt() sc.nextInt sc String output=(sum_of_moves>=H)?"Yes":"No"; output (sum_of_moves>=H)?"Yes":"No" (sum_of_moves>=H) sum_of_moves H "Yes" "No" System.out.print(output) System.out.print System.out System System.out output String[]args args public class Main {
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int H=sc.nextInt();
        int N=sc.nextInt();
      //  int [] moves=new int[N];
        int sum_of_moves=0;
        for(int i=0;i<N;i++)
           // moves[i]=sc.nextInt();
            sum_of_moves+=sc.nextInt();
        String output=(sum_of_moves>=H)?"Yes":"No";
        System.out.print(output);
    }
} public class Main {
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int H=sc.nextInt();
        int N=sc.nextInt();
      //  int [] moves=new int[N];
        int sum_of_moves=0;
        for(int i=0;i<N;i++)
           // moves[i]=sc.nextInt();
            sum_of_moves+=sc.nextInt();
        String output=(sum_of_moves>=H)?"Yes":"No";
        System.out.print(output);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int H=sc.nextInt();
        int N=sc.nextInt();
      //  int [] moves=new int[N];
        int sum_of_moves=0;
        for(int i=0;i<N;i++)
           // moves[i]=sc.nextInt();
            sum_of_moves+=sc.nextInt();
        String output=(sum_of_moves>=H)?"Yes":"No";
        System.out.print(output);
    }
}