import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int A[] = new int[N];
    int sum = 0;
    for (int i = 0; i < N; i++) {
      A[i] = scan.nextInt();
      sum += A[i];
    }
    if (sum >= H) {
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int A[] = new int[N];
    int sum = 0;
    for (int i = 0; i < N; i++) {
      A[i] = scan.nextInt();
      sum += A[i];
    }
    if (sum >= H) {
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int A[] = new int[N];
    int sum = 0;
    for (int i = 0; i < N; i++) {
      A[i] = scan.nextInt();
      sum += A[i];
    }
    if (sum >= H) {
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int A[] = new int[N];
    int sum = 0;
    for (int i = 0; i < N; i++) {
      A[i] = scan.nextInt();
      sum += A[i];
    }
    if (sum >= H) {
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int H = scan.nextInt(); H scan.nextInt() scan.nextInt scan int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int A[] = new int[N]; A new int[N] N int sum = 0; sum 0 for (int i = 0; i < N; i++) {
      A[i] = scan.nextInt();
      sum += A[i];
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      A[i] = scan.nextInt();
      sum += A[i];
    } {
      A[i] = scan.nextInt();
      sum += A[i];
    } A[i] = scan.nextInt() A[i] A i scan.nextInt() scan.nextInt scan sum += A[i] sum A[i] A i if (sum >= H) {
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    } sum >= H sum 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;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int A[] = new int[N];
    int sum = 0;
    for (int i = 0; i < N; i++) {
      A[i] = scan.nextInt();
      sum += A[i];
    }
    if (sum >= H) {
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
  }
}
