import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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

        int HP;
        int amount;

        HP = sc.nextInt();
        amount = sc.nextInt();

        List<Integer> attack = new ArrayList<>();

        for (int i = 0; i < amount; i++) {
            attack.add(sc.nextInt());
        }
        int sum = 0;
        for (int i = 0; i < attack.size(); i++) {
            sum += attack.get(i);
        }
        if (sum >= HP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int HP;
        int amount;

        HP = sc.nextInt();
        amount = sc.nextInt();

        List<Integer> attack = new ArrayList<>();

        for (int i = 0; i < amount; i++) {
            attack.add(sc.nextInt());
        }
        int sum = 0;
        for (int i = 0; i < attack.size(); i++) {
            sum += attack.get(i);
        }
        if (sum >= HP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int HP;
        int amount;

        HP = sc.nextInt();
        amount = sc.nextInt();

        List<Integer> attack = new ArrayList<>();

        for (int i = 0; i < amount; i++) {
            attack.add(sc.nextInt());
        }
        int sum = 0;
        for (int i = 0; i < attack.size(); i++) {
            sum += attack.get(i);
        }
        if (sum >= HP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int HP;
        int amount;

        HP = sc.nextInt();
        amount = sc.nextInt();

        List<Integer> attack = new ArrayList<>();

        for (int i = 0; i < amount; i++) {
            attack.add(sc.nextInt());
        }
        int sum = 0;
        for (int i = 0; i < attack.size(); i++) {
            sum += attack.get(i);
        }
        if (sum >= HP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int HP; HP int amount; amount HP = sc.nextInt() HP sc.nextInt() sc.nextInt sc amount = sc.nextInt() amount sc.nextInt() sc.nextInt sc List<Integer> attack = new ArrayList<>(); attack new ArrayList<>() for (int i = 0; i < amount; i++) {
            attack.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < amount i amount i++ i++ i {
            attack.add(sc.nextInt());
        } {
            attack.add(sc.nextInt());
        } attack.add(sc.nextInt()) attack.add attack sc.nextInt() sc.nextInt sc int sum = 0; sum 0 for (int i = 0; i < attack.size(); i++) {
            sum += attack.get(i);
        } int i = 0; int i = 0; i 0 i < attack.size() i attack.size() attack.size attack i++ i++ i {
            sum += attack.get(i);
        } {
            sum += attack.get(i);
        } sum += attack.get(i) sum attack.get(i) attack.get attack i if (sum >= HP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } sum >= HP sum HP {
            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 public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int HP;
        int amount;

        HP = sc.nextInt();
        amount = sc.nextInt();

        List<Integer> attack = new ArrayList<>();

        for (int i = 0; i < amount; i++) {
            attack.add(sc.nextInt());
        }
        int sum = 0;
        for (int i = 0; i < attack.size(); i++) {
            sum += attack.get(i);
        }
        if (sum >= HP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int HP;
        int amount;

        HP = sc.nextInt();
        amount = sc.nextInt();

        List<Integer> attack = new ArrayList<>();

        for (int i = 0; i < amount; i++) {
            attack.add(sc.nextInt());
        }
        int sum = 0;
        for (int i = 0; i < attack.size(); i++) {
            sum += attack.get(i);
        }
        if (sum >= HP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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

        int HP;
        int amount;

        HP = sc.nextInt();
        amount = sc.nextInt();

        List<Integer> attack = new ArrayList<>();

        for (int i = 0; i < amount; i++) {
            attack.add(sc.nextInt());
        }
        int sum = 0;
        for (int i = 0; i < attack.size(); i++) {
            sum += attack.get(i);
        }
        if (sum >= HP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}