import java.util.Scanner;

public class Main {

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

    int H = scanner.nextInt();
    int N = scanner.nextInt();
    long sum = 0;
    for (int i = 0; i < N; i++) {
      sum += scanner.nextInt();
    }
    System.out.println(H <= sum ? "Yes" : "No");
  }
} import java.util.Scanner; Scanner java.util public class Main {

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

    int H = scanner.nextInt();
    int N = scanner.nextInt();
    long sum = 0;
    for (int i = 0; i < N; i++) {
      sum += scanner.nextInt();
    }
    System.out.println(H <= sum ? "Yes" : "No");
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int H = scanner.nextInt();
    int N = scanner.nextInt();
    long sum = 0;
    for (int i = 0; i < N; i++) {
      sum += scanner.nextInt();
    }
    System.out.println(H <= sum ? "Yes" : "No");
  } main {
    Scanner scanner = new Scanner(System.in);

    int H = scanner.nextInt();
    int N = scanner.nextInt();
    long sum = 0;
    for (int i = 0; i < N; i++) {
      sum += scanner.nextInt();
    }
    System.out.println(H <= sum ? "Yes" : "No");
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int H = scanner.nextInt(); H scanner.nextInt() scanner.nextInt scanner int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner long sum = 0; sum 0 for (int i = 0; i < N; i++) {
      sum += scanner.nextInt();
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      sum += scanner.nextInt();
    } {
      sum += scanner.nextInt();
    } sum += scanner.nextInt() sum scanner.nextInt() scanner.nextInt scanner System.out.println(H <= sum ? "Yes" : "No") System.out.println System.out System System.out H <= sum ? "Yes" : "No" H <= sum H sum "Yes" "No" String[] args args public class Main {

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

    int H = scanner.nextInt();
    int N = scanner.nextInt();
    long sum = 0;
    for (int i = 0; i < N; i++) {
      sum += scanner.nextInt();
    }
    System.out.println(H <= sum ? "Yes" : "No");
  }
} public class Main {

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

    int H = scanner.nextInt();
    int N = scanner.nextInt();
    long sum = 0;
    for (int i = 0; i < N; i++) {
      sum += scanner.nextInt();
    }
    System.out.println(H <= sum ? "Yes" : "No");
  }
} Main
import java.util.Scanner;

public class Main {

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

    int H = scanner.nextInt();
    int N = scanner.nextInt();
    long sum = 0;
    for (int i = 0; i < N; i++) {
      sum += scanner.nextInt();
    }
    System.out.println(H <= sum ? "Yes" : "No");
  }
}