import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        int N = sc.nextInt();
        long A = 0;

        for (int i = 0; i < N; i++)
            A += sc.nextLong();

        System.out.println(A >= H ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        int N = sc.nextInt();
        long A = 0;

        for (int i = 0; i < N; i++)
            A += sc.nextLong();

        System.out.println(A >= H ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        int N = sc.nextInt();
        long A = 0;

        for (int i = 0; i < N; i++)
            A += sc.nextLong();

        System.out.println(A >= H ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        int N = sc.nextInt();
        long A = 0;

        for (int i = 0; i < N; i++)
            A += sc.nextLong();

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

        long H = sc.nextLong();
        int N = sc.nextInt();
        long A = 0;

        for (int i = 0; i < N; i++)
            A += sc.nextLong();

        System.out.println(A >= H ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        int N = sc.nextInt();
        long A = 0;

        for (int i = 0; i < N; i++)
            A += sc.nextLong();

        System.out.println(A >= H ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        int N = sc.nextInt();
        long A = 0;

        for (int i = 0; i < N; i++)
            A += sc.nextLong();

        System.out.println(A >= H ? "Yes" : "No");
    }
}
