import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        int h = Integer.parseInt(input[0]);
        int n = Integer.parseInt(input[1]);

        int attack = 0;
        String[] skills = sc.nextLine().split(" ");
        for (String skill : skills) {
            attack += Integer.parseInt(skill);
        }

        System.out.println(h > attack ? "No" : "Yes");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        int h = Integer.parseInt(input[0]);
        int n = Integer.parseInt(input[1]);

        int attack = 0;
        String[] skills = sc.nextLine().split(" ");
        for (String skill : skills) {
            attack += Integer.parseInt(skill);
        }

        System.out.println(h > attack ? "No" : "Yes");
    }
} Main public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        int h = Integer.parseInt(input[0]);
        int n = Integer.parseInt(input[1]);

        int attack = 0;
        String[] skills = sc.nextLine().split(" ");
        for (String skill : skills) {
            attack += Integer.parseInt(skill);
        }

        System.out.println(h > attack ? "No" : "Yes");
    } main {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        int h = Integer.parseInt(input[0]);
        int n = Integer.parseInt(input[1]);

        int attack = 0;
        String[] skills = sc.nextLine().split(" ");
        for (String skill : skills) {
            attack += Integer.parseInt(skill);
        }

        System.out.println(h > attack ? "No" : "Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] input = sc.nextLine().split(" "); input sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int h = Integer.parseInt(input[0]); h Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int n = Integer.parseInt(input[1]); n Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 int attack = 0; attack 0 String[] skills = sc.nextLine().split(" "); skills sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " for (String skill : skills) {
            attack += Integer.parseInt(skill);
        } String skill skills {
            attack += Integer.parseInt(skill);
        } {
            attack += Integer.parseInt(skill);
        } attack += Integer.parseInt(skill) attack Integer.parseInt(skill) Integer.parseInt Integer skill System.out.println(h > attack ? "No" : "Yes") System.out.println System.out System System.out h > attack ? "No" : "Yes" h > attack h attack "No" "Yes" String[] args args public class Main {

    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        int h = Integer.parseInt(input[0]);
        int n = Integer.parseInt(input[1]);

        int attack = 0;
        String[] skills = sc.nextLine().split(" ");
        for (String skill : skills) {
            attack += Integer.parseInt(skill);
        }

        System.out.println(h > attack ? "No" : "Yes");
    }
} public class Main {

    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        int h = Integer.parseInt(input[0]);
        int n = Integer.parseInt(input[1]);

        int attack = 0;
        String[] skills = sc.nextLine().split(" ");
        for (String skill : skills) {
            attack += Integer.parseInt(skill);
        }

        System.out.println(h > attack ? "No" : "Yes");
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        int h = Integer.parseInt(input[0]);
        int n = Integer.parseInt(input[1]);

        int attack = 0;
        String[] skills = sc.nextLine().split(" ");
        for (String skill : skills) {
            attack += Integer.parseInt(skill);
        }

        System.out.println(h > attack ? "No" : "Yes");
    }
}