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[] A = new int[N];

      for(int i = 0;i < A.length;i++){
       A[i] = sc.nextInt();
      }

      for(int i = 0;i < A.length;i++){
       H -= A[i];
      }

      if(H <= 0){
       System.out.print("Yes");
      }else{
       System.out.print("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[] A = new int[N];

      for(int i = 0;i < A.length;i++){
       A[i] = sc.nextInt();
      }

      for(int i = 0;i < A.length;i++){
       H -= A[i];
      }

      if(H <= 0){
       System.out.print("Yes");
      }else{
       System.out.print("No");
      }

      
   }
 } Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);

      int H = sc.nextInt();
      int N = sc.nextInt();
      int[] A = new int[N];

      for(int i = 0;i < A.length;i++){
       A[i] = sc.nextInt();
      }

      for(int i = 0;i < A.length;i++){
       H -= A[i];
      }

      if(H <= 0){
       System.out.print("Yes");
      }else{
       System.out.print("No");
      }

      
   } main {
      Scanner sc = new Scanner(System.in);

      int H = sc.nextInt();
      int N = sc.nextInt();
      int[] A = new int[N];

      for(int i = 0;i < A.length;i++){
       A[i] = sc.nextInt();
      }

      for(int i = 0;i < A.length;i++){
       H -= A[i];
      }

      if(H <= 0){
       System.out.print("Yes");
      }else{
       System.out.print("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[] A = new int[N]; A new int[N] N for(int i = 0;i < A.length;i++){
       A[i] = sc.nextInt();
      } int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {
       A[i] = sc.nextInt();
      } {
       A[i] = sc.nextInt();
      } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc for(int i = 0;i < A.length;i++){
       H -= A[i];
      } int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {
       H -= A[i];
      } {
       H -= A[i];
      } H -= A[i] H A[i] A i if(H <= 0){
       System.out.print("Yes");
      }else{
       System.out.print("No");
      } H <= 0 H 0 {
       System.out.print("Yes");
      } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
       System.out.print("No");
      } System.out.print("No") System.out.print System.out System System.out "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[] A = new int[N];

      for(int i = 0;i < A.length;i++){
       A[i] = sc.nextInt();
      }

      for(int i = 0;i < A.length;i++){
       H -= A[i];
      }

      if(H <= 0){
       System.out.print("Yes");
      }else{
       System.out.print("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[] A = new int[N];

      for(int i = 0;i < A.length;i++){
       A[i] = sc.nextInt();
      }

      for(int i = 0;i < A.length;i++){
       H -= A[i];
      }

      if(H <= 0){
       System.out.print("Yes");
      }else{
       System.out.print("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[] A = new int[N];

      for(int i = 0;i < A.length;i++){
       A[i] = sc.nextInt();
      }

      for(int i = 0;i < A.length;i++){
       H -= A[i];
      }

      if(H <= 0){
       System.out.print("Yes");
      }else{
       System.out.print("No");
      }

      
   }
 }