import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {

        // 入力データの取得
        Scanner scanner = new Scanner(System.in);
        String inputHPAndCountData = scanner.nextLine();
        String inputSkillDamageData = scanner.nextLine();
        scanner.close();

        // 入力データの編集
        String[] editedInputHPAndCountData = inputHPAndCountData.split(" ");
        int enemyHP = Integer.parseInt(editedInputHPAndCountData[0]);
        int skillCount = Integer.parseInt(editedInputHPAndCountData[1]);
        long totalDamage = 0;
        if (skillCount != 1) {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } else {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        }

        // 判定
        if (totalDamage >= enemyHP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {

        // 入力データの取得
        Scanner scanner = new Scanner(System.in);
        String inputHPAndCountData = scanner.nextLine();
        String inputSkillDamageData = scanner.nextLine();
        scanner.close();

        // 入力データの編集
        String[] editedInputHPAndCountData = inputHPAndCountData.split(" ");
        int enemyHP = Integer.parseInt(editedInputHPAndCountData[0]);
        int skillCount = Integer.parseInt(editedInputHPAndCountData[1]);
        long totalDamage = 0;
        if (skillCount != 1) {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } else {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        }

        // 判定
        if (totalDamage >= enemyHP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }

} Main public static void main(String[] args) throws Exception {

        // 入力データの取得
        Scanner scanner = new Scanner(System.in);
        String inputHPAndCountData = scanner.nextLine();
        String inputSkillDamageData = scanner.nextLine();
        scanner.close();

        // 入力データの編集
        String[] editedInputHPAndCountData = inputHPAndCountData.split(" ");
        int enemyHP = Integer.parseInt(editedInputHPAndCountData[0]);
        int skillCount = Integer.parseInt(editedInputHPAndCountData[1]);
        long totalDamage = 0;
        if (skillCount != 1) {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } else {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        }

        // 判定
        if (totalDamage >= enemyHP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    } main {

        // 入力データの取得
        Scanner scanner = new Scanner(System.in);
        String inputHPAndCountData = scanner.nextLine();
        String inputSkillDamageData = scanner.nextLine();
        scanner.close();

        // 入力データの編集
        String[] editedInputHPAndCountData = inputHPAndCountData.split(" ");
        int enemyHP = Integer.parseInt(editedInputHPAndCountData[0]);
        int skillCount = Integer.parseInt(editedInputHPAndCountData[1]);
        long totalDamage = 0;
        if (skillCount != 1) {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } else {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        }

        // 判定
        if (totalDamage >= enemyHP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputHPAndCountData = scanner.nextLine(); inputHPAndCountData scanner.nextLine() scanner.nextLine scanner String inputSkillDamageData = scanner.nextLine(); inputSkillDamageData scanner.nextLine() scanner.nextLine scanner scanner.close() scanner.close scanner String[] editedInputHPAndCountData = inputHPAndCountData.split(" "); editedInputHPAndCountData inputHPAndCountData.split(" ") inputHPAndCountData.split inputHPAndCountData " " int enemyHP = Integer.parseInt(editedInputHPAndCountData[0]); enemyHP Integer.parseInt(editedInputHPAndCountData[0]) Integer.parseInt Integer editedInputHPAndCountData[0] editedInputHPAndCountData 0 int skillCount = Integer.parseInt(editedInputHPAndCountData[1]); skillCount Integer.parseInt(editedInputHPAndCountData[1]) Integer.parseInt Integer editedInputHPAndCountData[1] editedInputHPAndCountData 1 long totalDamage = 0; totalDamage 0 if (skillCount != 1) {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } else {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        } skillCount != 1 skillCount 1 {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } String[] skillDamageList = inputSkillDamageData.split(" "); skillDamageList inputSkillDamageData.split(" ") inputSkillDamageData.split inputSkillDamageData " " int[] skillDamage = new int[skillCount]; skillDamage new int[skillCount] skillCount for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            } int index = 0; int index = 0; index 0 index < skillCount index skillCount index++ index++ index {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            } {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            } skillDamage[index] = Integer.parseInt(skillDamageList[index]) skillDamage[index] skillDamage index Integer.parseInt(skillDamageList[index]) Integer.parseInt Integer skillDamageList[index] skillDamageList index totalDamage += skillDamage[index] totalDamage skillDamage[index] skillDamage index {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        } totalDamage = Integer.parseInt(inputSkillDamageData) totalDamage Integer.parseInt(inputSkillDamageData) Integer.parseInt Integer inputSkillDamageData if (totalDamage >= enemyHP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } totalDamage >= enemyHP totalDamage enemyHP {
            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) throws Exception {

        // 入力データの取得
        Scanner scanner = new Scanner(System.in);
        String inputHPAndCountData = scanner.nextLine();
        String inputSkillDamageData = scanner.nextLine();
        scanner.close();

        // 入力データの編集
        String[] editedInputHPAndCountData = inputHPAndCountData.split(" ");
        int enemyHP = Integer.parseInt(editedInputHPAndCountData[0]);
        int skillCount = Integer.parseInt(editedInputHPAndCountData[1]);
        long totalDamage = 0;
        if (skillCount != 1) {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } else {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        }

        // 判定
        if (totalDamage >= enemyHP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }

} public class Main {
    public static void main(String[] args) throws Exception {

        // 入力データの取得
        Scanner scanner = new Scanner(System.in);
        String inputHPAndCountData = scanner.nextLine();
        String inputSkillDamageData = scanner.nextLine();
        scanner.close();

        // 入力データの編集
        String[] editedInputHPAndCountData = inputHPAndCountData.split(" ");
        int enemyHP = Integer.parseInt(editedInputHPAndCountData[0]);
        int skillCount = Integer.parseInt(editedInputHPAndCountData[1]);
        long totalDamage = 0;
        if (skillCount != 1) {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } else {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        }

        // 判定
        if (totalDamage >= enemyHP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }

} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {

        // 入力データの取得
        Scanner scanner = new Scanner(System.in);
        String inputHPAndCountData = scanner.nextLine();
        String inputSkillDamageData = scanner.nextLine();
        scanner.close();

        // 入力データの編集
        String[] editedInputHPAndCountData = inputHPAndCountData.split(" ");
        int enemyHP = Integer.parseInt(editedInputHPAndCountData[0]);
        int skillCount = Integer.parseInt(editedInputHPAndCountData[1]);
        long totalDamage = 0;
        if (skillCount != 1) {
            String[] skillDamageList = inputSkillDamageData.split(" ");
            int[] skillDamage = new int[skillCount];
            for (int index = 0; index < skillCount; index++) {
                skillDamage[index] = Integer.parseInt(skillDamageList[index]);
                totalDamage += skillDamage[index];
            }
        } else {
            totalDamage = Integer.parseInt(inputSkillDamageData);
        }

        // 判定
        if (totalDamage >= enemyHP) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        
    }

}