import java.util.Arrays;
import java.util.BitSet;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        sc.nextLine();
        int sumA = 0;
        for (int i = 0; i < N; i++) {
            sumA += sc.nextInt();
        }
        System.out.println(sumA >= H ? "Yes" : "No");
    }
} import java.util.Arrays; Arrays java.util import java.util.BitSet; BitSet java.util import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        sc.nextLine();
        int sumA = 0;
        for (int i = 0; i < N; i++) {
            sumA += sc.nextInt();
        }
        System.out.println(sumA >= H ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        sc.nextLine();
        int sumA = 0;
        for (int i = 0; i < N; i++) {
            sumA += sc.nextInt();
        }
        System.out.println(sumA >= H ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        sc.nextLine();
        int sumA = 0;
        for (int i = 0; i < N; i++) {
            sumA += sc.nextInt();
        }
        System.out.println(sumA >= H ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int H = sc.nextInt(); H sc.nextInt() sc.nextInt sc int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc int sumA = 0; sumA 0 for (int i = 0; i < N; i++) {
            sumA += sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            sumA += sc.nextInt();
        } {
            sumA += sc.nextInt();
        } sumA += sc.nextInt() sumA sc.nextInt() sc.nextInt sc System.out.println(sumA >= H ? "Yes" : "No") System.out.println System.out System System.out sumA >= H ? "Yes" : "No" sumA >= H sumA H "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        sc.nextLine();
        int sumA = 0;
        for (int i = 0; i < N; i++) {
            sumA += sc.nextInt();
        }
        System.out.println(sumA >= H ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        sc.nextLine();
        int sumA = 0;
        for (int i = 0; i < N; i++) {
            sumA += sc.nextInt();
        }
        System.out.println(sumA >= H ? "Yes" : "No");
    }
} Main
import java.util.Arrays;
import java.util.BitSet;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int N = sc.nextInt();
        sc.nextLine();
        int sumA = 0;
        for (int i = 0; i < N; i++) {
            sumA += sc.nextInt();
        }
        System.out.println(sumA >= H ? "Yes" : "No");
    }
}