import java.util.Scanner;


public class Main {

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

    
    public static void main(String[] args) {
       Scanner input= new Scanner(System.in);
       int y,n,i,x,sum=0;
       y= input.nextInt();
       n=input.nextInt();
       for(i=0;i<n;i++){
           x=input.nextInt();
           sum=sum+x;
       }
    if(sum>=y){
        System.out.println("Yes");
    }
    else 
        System.out.println("No");
}
} Main
import java.util.Scanner;


public class Main {

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