import java.util.Scanner;

public class Main {

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int h = scanner.nextInt();
        int n = scanner.nextInt();
        int[] a = new int[n];
        int asum = 0;

        for( int i = 0 ; i < n ; i++){
            a[i] = scanner.nextInt();
            asum += a[i];
        }

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

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int h = scanner.nextInt();
        int n = scanner.nextInt();
        int[] a = new int[n];
        int asum = 0;

        for( int i = 0 ; i < n ; i++){
            a[i] = scanner.nextInt();
            asum += a[i];
        }

        String result = h > asum ? "No" : "Yes";
        System.out.println(result);
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int h = scanner.nextInt();
        int n = scanner.nextInt();
        int[] a = new int[n];
        int asum = 0;

        for( int i = 0 ; i < n ; i++){
            a[i] = scanner.nextInt();
            asum += a[i];
        }

        String result = h > asum ? "No" : "Yes";
        System.out.println(result);
    } main {
        Scanner scanner = new Scanner(System.in);
        int h = scanner.nextInt();
        int n = scanner.nextInt();
        int[] a = new int[n];
        int asum = 0;

        for( int i = 0 ; i < n ; i++){
            a[i] = scanner.nextInt();
            asum += a[i];
        }

        String result = h > asum ? "No" : "Yes";
        System.out.println(result);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int h = scanner.nextInt(); h scanner.nextInt() scanner.nextInt scanner int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int[] a = new int[n]; a new int[n] n int asum = 0; asum 0 for( int i = 0 ; i < n ; i++){
            a[i] = scanner.nextInt();
            asum += a[i];
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            a[i] = scanner.nextInt();
            asum += a[i];
        } {
            a[i] = scanner.nextInt();
            asum += a[i];
        } a[i] = scanner.nextInt() a[i] a i scanner.nextInt() scanner.nextInt scanner asum += a[i] asum a[i] a i String result = h > asum ? "No" : "Yes"; result h > asum ? "No" : "Yes" h > asum h asum "No" "Yes" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int h = scanner.nextInt();
        int n = scanner.nextInt();
        int[] a = new int[n];
        int asum = 0;

        for( int i = 0 ; i < n ; i++){
            a[i] = scanner.nextInt();
            asum += a[i];
        }

        String result = h > asum ? "No" : "Yes";
        System.out.println(result);
    }
} public class Main {

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int h = scanner.nextInt();
        int n = scanner.nextInt();
        int[] a = new int[n];
        int asum = 0;

        for( int i = 0 ; i < n ; i++){
            a[i] = scanner.nextInt();
            asum += a[i];
        }

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

public class Main {

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int h = scanner.nextInt();
        int n = scanner.nextInt();
        int[] a = new int[n];
        int asum = 0;

        for( int i = 0 ; i < n ; i++){
            a[i] = scanner.nextInt();
            asum += a[i];
        }

        String result = h > asum ? "No" : "Yes";
        System.out.println(result);
    }
}