import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int A[] = new int[b];
        int sum =0;
        for (int i = 0; i < b; i++) {
            A[i] = sc.nextInt();
            sum += A[i];
        }
        if (a <= sum ) {
            System.out.printf("Yes");
        }else{
            System.out.printf("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int A[] = new int[b];
        int sum =0;
        for (int i = 0; i < b; i++) {
            A[i] = sc.nextInt();
            sum += A[i];
        }
        if (a <= sum ) {
            System.out.printf("Yes");
        }else{
            System.out.printf("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int A[] = new int[b];
        int sum =0;
        for (int i = 0; i < b; i++) {
            A[i] = sc.nextInt();
            sum += A[i];
        }
        if (a <= sum ) {
            System.out.printf("Yes");
        }else{
            System.out.printf("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int A[] = new int[b];
        int sum =0;
        for (int i = 0; i < b; i++) {
            A[i] = sc.nextInt();
            sum += A[i];
        }
        if (a <= sum ) {
            System.out.printf("Yes");
        }else{
            System.out.printf("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int A[] = new int[b]; A new int[b] b int sum =0; sum 0 for (int i = 0; i < b; i++) {
            A[i] = sc.nextInt();
            sum += A[i];
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            A[i] = sc.nextInt();
            sum += A[i];
        } {
            A[i] = sc.nextInt();
            sum += A[i];
        } A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc sum += A[i] sum A[i] A i if (a <= sum ) {
            System.out.printf("Yes");
        }else{
            System.out.printf("No");
        } a <= sum a sum {
            System.out.printf("Yes");
        } System.out.printf("Yes") System.out.printf System.out System System.out "Yes" {
            System.out.printf("No");
        } System.out.printf("No") System.out.printf 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 a = sc.nextInt();
        int b = sc.nextInt();
        int A[] = new int[b];
        int sum =0;
        for (int i = 0; i < b; i++) {
            A[i] = sc.nextInt();
            sum += A[i];
        }
        if (a <= sum ) {
            System.out.printf("Yes");
        }else{
            System.out.printf("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int A[] = new int[b];
        int sum =0;
        for (int i = 0; i < b; i++) {
            A[i] = sc.nextInt();
            sum += A[i];
        }
        if (a <= sum ) {
            System.out.printf("Yes");
        }else{
            System.out.printf("No");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int A[] = new int[b];
        int sum =0;
        for (int i = 0; i < b; i++) {
            A[i] = sc.nextInt();
            sum += A[i];
        }
        if (a <= sum ) {
            System.out.printf("Yes");
        }else{
            System.out.printf("No");
        }
    }
}
