import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long H = sc.nextLong();
    int N = sc.nextInt();
    sc.nextLine();
    String tmp = sc.nextLine();
    String Spl[] = tmp.split(" ");
    int A[] = new int[N];
    long ans = 0;
    for (int i=0;i<N;i++){
      A[i] = Integer.parseInt(Spl[i]);
      ans += A[i];
    }
    if (H<=ans){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }      
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long H = sc.nextLong();
    int N = sc.nextInt();
    sc.nextLine();
    String tmp = sc.nextLine();
    String Spl[] = tmp.split(" ");
    int A[] = new int[N];
    long ans = 0;
    for (int i=0;i<N;i++){
      A[i] = Integer.parseInt(Spl[i]);
      ans += A[i];
    }
    if (H<=ans){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }      
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long H = sc.nextLong();
    int N = sc.nextInt();
    sc.nextLine();
    String tmp = sc.nextLine();
    String Spl[] = tmp.split(" ");
    int A[] = new int[N];
    long ans = 0;
    for (int i=0;i<N;i++){
      A[i] = Integer.parseInt(Spl[i]);
      ans += A[i];
    }
    if (H<=ans){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }      
  } main {
    Scanner sc = new Scanner(System.in);
    long H = sc.nextLong();
    int N = sc.nextInt();
    sc.nextLine();
    String tmp = sc.nextLine();
    String Spl[] = tmp.split(" ");
    int A[] = new int[N];
    long ans = 0;
    for (int i=0;i<N;i++){
      A[i] = Integer.parseInt(Spl[i]);
      ans += A[i];
    }
    if (H<=ans){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }      
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long H = sc.nextLong(); H sc.nextLong() sc.nextLong sc int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc String tmp = sc.nextLine(); tmp sc.nextLine() sc.nextLine sc String Spl[] = tmp.split(" "); Spl tmp.split(" ") tmp.split tmp " " int A[] = new int[N]; A new int[N] N long ans = 0; ans 0 for (int i=0;i<N;i++){
      A[i] = Integer.parseInt(Spl[i]);
      ans += A[i];
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      A[i] = Integer.parseInt(Spl[i]);
      ans += A[i];
    } {
      A[i] = Integer.parseInt(Spl[i]);
      ans += A[i];
    } A[i] = Integer.parseInt(Spl[i]) A[i] A i Integer.parseInt(Spl[i]) Integer.parseInt Integer Spl[i] Spl i ans += A[i] ans A[i] A i if (H<=ans){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } H<=ans H ans {
      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.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long H = sc.nextLong();
    int N = sc.nextInt();
    sc.nextLine();
    String tmp = sc.nextLine();
    String Spl[] = tmp.split(" ");
    int A[] = new int[N];
    long ans = 0;
    for (int i=0;i<N;i++){
      A[i] = Integer.parseInt(Spl[i]);
      ans += A[i];
    }
    if (H<=ans){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }      
  }
}
