import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int health = sc.nextInt();
    int attacks = sc.nextInt();

    int totalAttack = 0;

    for (int i = 0; i < attacks; i++) {
      totalAttack += sc.nextInt();
    }
    if (health > totalAttack)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int health = sc.nextInt();
    int attacks = sc.nextInt();

    int totalAttack = 0;

    for (int i = 0; i < attacks; i++) {
      totalAttack += sc.nextInt();
    }
    if (health > totalAttack)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int health = sc.nextInt();
    int attacks = sc.nextInt();

    int totalAttack = 0;

    for (int i = 0; i < attacks; i++) {
      totalAttack += sc.nextInt();
    }
    if (health > totalAttack)
      System.out.println("No");
    else
      System.out.println("Yes");
  } main {
    Scanner sc = new Scanner(System.in);
    int health = sc.nextInt();
    int attacks = sc.nextInt();

    int totalAttack = 0;

    for (int i = 0; i < attacks; i++) {
      totalAttack += sc.nextInt();
    }
    if (health > totalAttack)
      System.out.println("No");
    else
      System.out.println("Yes");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int health = sc.nextInt(); health sc.nextInt() sc.nextInt sc int attacks = sc.nextInt(); attacks sc.nextInt() sc.nextInt sc int totalAttack = 0; totalAttack 0 for (int i = 0; i < attacks; i++) {
      totalAttack += sc.nextInt();
    } int i = 0; int i = 0; i 0 i < attacks i attacks i++ i++ i {
      totalAttack += sc.nextInt();
    } {
      totalAttack += sc.nextInt();
    } totalAttack += sc.nextInt() totalAttack sc.nextInt() sc.nextInt sc if (health > totalAttack)
      System.out.println("No");
    else
      System.out.println("Yes"); health > totalAttack health totalAttack System.out.println("No") System.out.println System.out System System.out "No" System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int health = sc.nextInt();
    int attacks = sc.nextInt();

    int totalAttack = 0;

    for (int i = 0; i < attacks; i++) {
      totalAttack += sc.nextInt();
    }
    if (health > totalAttack)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
}