import java.util.Scanner;

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

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