// package app;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        long N = sc.nextLong();

        boolean exceedHP = false;
        long score = 0;
        for (int i = 0; i < N; i++) {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        }

        System.out.println(exceedHP ? "Yes" : "No");



    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.Arrays; Arrays java.util import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Objects; Objects java.util import java.util.Scanner; Scanner java.util import java.util.stream.Stream; Stream java.util.stream public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        long N = sc.nextLong();

        boolean exceedHP = false;
        long score = 0;
        for (int i = 0; i < N; i++) {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        }

        System.out.println(exceedHP ? "Yes" : "No");



    }
} Main public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        long N = sc.nextLong();

        boolean exceedHP = false;
        long score = 0;
        for (int i = 0; i < N; i++) {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        }

        System.out.println(exceedHP ? "Yes" : "No");



    } main {

        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        long N = sc.nextLong();

        boolean exceedHP = false;
        long score = 0;
        for (int i = 0; i < N; i++) {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        }

        System.out.println(exceedHP ? "Yes" : "No");



    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long H = sc.nextLong(); H sc.nextLong() sc.nextLong sc long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc boolean exceedHP = false; exceedHP false long score = 0; score 0 for (int i = 0; i < N; i++) {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        } {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        } score += sc.nextLong() score sc.nextLong() sc.nextLong sc if (H <= score) {
                exceedHP = true;
                break;
            } H <= score H score {
                exceedHP = true;
                break;
            } exceedHP = true exceedHP true break; System.out.println(exceedHP ? "Yes" : "No") System.out.println System.out System System.out exceedHP ? "Yes" : "No" exceedHP "Yes" "No" final String[] args args public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        long N = sc.nextLong();

        boolean exceedHP = false;
        long score = 0;
        for (int i = 0; i < N; i++) {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        }

        System.out.println(exceedHP ? "Yes" : "No");



    }
} public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        long N = sc.nextLong();

        boolean exceedHP = false;
        long score = 0;
        for (int i = 0; i < N; i++) {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        }

        System.out.println(exceedHP ? "Yes" : "No");



    }
} Main
// package app;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long H = sc.nextLong();
        long N = sc.nextLong();

        boolean exceedHP = false;
        long score = 0;
        for (int i = 0; i < N; i++) {
            score += sc.nextLong();
            if (H <= score) {
                exceedHP = true;
                break;
            }
        }

        System.out.println(exceedHP ? "Yes" : "No");



    }
}