import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int hp = scanner.nextInt();
        int kinds = scanner.nextInt();
        int[] a = new int[kinds];
        for(int i = 0; i < kinds; i++) {
            a[i] = scanner.nextInt();
        }
        scanner.close();
 
        int sum = 0;
        for(int _a : a) {
            sum += _a;
        }
 
        System.out.println(hp <= 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 hp = scanner.nextInt();
        int kinds = scanner.nextInt();
        int[] a = new int[kinds];
        for(int i = 0; i < kinds; i++) {
            a[i] = scanner.nextInt();
        }
        scanner.close();
 
        int sum = 0;
        for(int _a : a) {
            sum += _a;
        }
 
        System.out.println(hp <= sum ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int hp = scanner.nextInt();
        int kinds = scanner.nextInt();
        int[] a = new int[kinds];
        for(int i = 0; i < kinds; i++) {
            a[i] = scanner.nextInt();
        }
        scanner.close();
 
        int sum = 0;
        for(int _a : a) {
            sum += _a;
        }
 
        System.out.println(hp <= sum ? "Yes" : "No");
    } main {
        Scanner scanner = new Scanner(System.in);
        int hp = scanner.nextInt();
        int kinds = scanner.nextInt();
        int[] a = new int[kinds];
        for(int i = 0; i < kinds; i++) {
            a[i] = scanner.nextInt();
        }
        scanner.close();
 
        int sum = 0;
        for(int _a : a) {
            sum += _a;
        }
 
        System.out.println(hp <= sum ? "Yes" : "No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int hp = scanner.nextInt(); hp scanner.nextInt() scanner.nextInt scanner int kinds = scanner.nextInt(); kinds scanner.nextInt() scanner.nextInt scanner int[] a = new int[kinds]; a new int[kinds] kinds for(int i = 0; i < kinds; i++) {
            a[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < kinds i kinds i++ i++ i {
            a[i] = scanner.nextInt();
        } {
            a[i] = scanner.nextInt();
        } a[i] = scanner.nextInt() a[i] a i scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner int sum = 0; sum 0 for(int _a : a) {
            sum += _a;
        } int _a a {
            sum += _a;
        } {
            sum += _a;
        } sum += _a sum _a System.out.println(hp <= sum ? "Yes" : "No") System.out.println System.out System System.out hp <= sum ? "Yes" : "No" hp <= sum hp sum "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int hp = scanner.nextInt();
        int kinds = scanner.nextInt();
        int[] a = new int[kinds];
        for(int i = 0; i < kinds; i++) {
            a[i] = scanner.nextInt();
        }
        scanner.close();
 
        int sum = 0;
        for(int _a : a) {
            sum += _a;
        }
 
        System.out.println(hp <= sum ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int hp = scanner.nextInt();
        int kinds = scanner.nextInt();
        int[] a = new int[kinds];
        for(int i = 0; i < kinds; i++) {
            a[i] = scanner.nextInt();
        }
        scanner.close();
 
        int sum = 0;
        for(int _a : a) {
            sum += _a;
        }
 
        System.out.println(hp <= sum ? "Yes" : "No");
    }
} Main
import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int hp = scanner.nextInt();
        int kinds = scanner.nextInt();
        int[] a = new int[kinds];
        for(int i = 0; i < kinds; i++) {
            a[i] = scanner.nextInt();
        }
        scanner.close();
 
        int sum = 0;
        for(int _a : a) {
            sum += _a;
        }
 
        System.out.println(hp <= sum ? "Yes" : "No");
    }
}