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