import 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 sumAtk = 0;
    for (int i = 0; i < n; i++) {
      sumAtk += sc.nextInt();
    }
    System.out.println(sumAtk >= h ? "Yes" : "No");
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int sumAtk = 0;
    for (int i = 0; i < n; i++) {
      sumAtk += sc.nextInt();
    }
    System.out.println(sumAtk >= h ? "Yes" : "No");
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int sumAtk = 0;
    for (int i = 0; i < n; i++) {
      sumAtk += sc.nextInt();
    }
    System.out.println(sumAtk >= h ? "Yes" : "No");
  } main {
    Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int sumAtk = 0;
    for (int i = 0; i < n; i++) {
      sumAtk += sc.nextInt();
    }
    System.out.println(sumAtk >= h ? "Yes" : "No");
  } 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 sumAtk = 0; sumAtk 0 for (int i = 0; i < n; i++) {
      sumAtk += sc.nextInt();
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      sumAtk += sc.nextInt();
    } {
      sumAtk += sc.nextInt();
    } sumAtk += sc.nextInt() sumAtk sc.nextInt() sc.nextInt sc System.out.println(sumAtk >= h ? "Yes" : "No") System.out.println System.out System System.out sumAtk >= h ? "Yes" : "No" sumAtk >= h sumAtk h "Yes" "No" 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 sumAtk = 0;
    for (int i = 0; i < n; i++) {
      sumAtk += sc.nextInt();
    }
    System.out.println(sumAtk >= h ? "Yes" : "No");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int h = sc.nextInt();
    int n = sc.nextInt();
    int sumAtk = 0;
    for (int i = 0; i < n; i++) {
      sumAtk += sc.nextInt();
    }
    System.out.println(sumAtk >= h ? "Yes" : "No");
  }
} Main
import 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 sumAtk = 0;
    for (int i = 0; i < n; i++) {
      sumAtk += sc.nextInt();
    }
    System.out.println(sumAtk >= h ? "Yes" : "No");
  }
}
