import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    int N = Integer.parseInt(S[0]);
    int K = Integer.parseInt(S[1]);
    long sum = 0;
    for(int i = 0; i < K; i++){
      sum += Long.parseLong(sc.next());
    }

    System.out.println(sum >= N ? "Yes" : "No");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    int N = Integer.parseInt(S[0]);
    int K = Integer.parseInt(S[1]);
    long sum = 0;
    for(int i = 0; i < K; i++){
      sum += Long.parseLong(sc.next());
    }

    System.out.println(sum >= N ? "Yes" : "No");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    int N = Integer.parseInt(S[0]);
    int K = Integer.parseInt(S[1]);
    long sum = 0;
    for(int i = 0; i < K; i++){
      sum += Long.parseLong(sc.next());
    }

    System.out.println(sum >= N ? "Yes" : "No");
  } main {
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    int N = Integer.parseInt(S[0]);
    int K = Integer.parseInt(S[1]);
    long sum = 0;
    for(int i = 0; i < K; i++){
      sum += Long.parseLong(sc.next());
    }

    System.out.println(sum >= N ? "Yes" : "No");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] S = sc.nextLine().split(" "); S sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int N = Integer.parseInt(S[0]); N Integer.parseInt(S[0]) Integer.parseInt Integer S[0] S 0 int K = Integer.parseInt(S[1]); K Integer.parseInt(S[1]) Integer.parseInt Integer S[1] S 1 long sum = 0; sum 0 for(int i = 0; i < K; i++){
      sum += Long.parseLong(sc.next());
    } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
      sum += Long.parseLong(sc.next());
    } {
      sum += Long.parseLong(sc.next());
    } sum += Long.parseLong(sc.next()) sum Long.parseLong(sc.next()) Long.parseLong Long sc.next() sc.next sc System.out.println(sum >= N ? "Yes" : "No") System.out.println System.out System System.out sum >= N ? "Yes" : "No" sum >= N sum N "Yes" "No" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    int N = Integer.parseInt(S[0]);
    int K = Integer.parseInt(S[1]);
    long sum = 0;
    for(int i = 0; i < K; i++){
      sum += Long.parseLong(sc.next());
    }

    System.out.println(sum >= N ? "Yes" : "No");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    int N = Integer.parseInt(S[0]);
    int K = Integer.parseInt(S[1]);
    long sum = 0;
    for(int i = 0; i < K; i++){
      sum += Long.parseLong(sc.next());
    }

    System.out.println(sum >= N ? "Yes" : "No");
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] S = sc.nextLine().split(" ");
    int N = Integer.parseInt(S[0]);
    int K = Integer.parseInt(S[1]);
    long sum = 0;
    for(int i = 0; i < K; i++){
      sum += Long.parseLong(sc.next());
    }

    System.out.println(sum >= N ? "Yes" : "No");
  }
}