import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main {
    public static void main(String[] args) {
        PrintWriter pw = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String read1 = null;
        String read2 = null;
        try {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } catch (IOException e){
            e.printStackTrace();
        }
        String str[] = read1.split(" ", 0);
        String at[] = read2.split(" ", 0);
        int h = Integer.parseInt(str[0]);
        int n = Integer.parseInt(str[1]);
        for (int i = 0; i < n; i++) {
            h = h - Integer.parseInt(at[i]);
        }
        if (h <= 0) {
            pw.println("Yes");
        }else {
            pw.println("No");
        }
        pw.flush();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io public class Main {
    public static void main(String[] args) {
        PrintWriter pw = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String read1 = null;
        String read2 = null;
        try {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } catch (IOException e){
            e.printStackTrace();
        }
        String str[] = read1.split(" ", 0);
        String at[] = read2.split(" ", 0);
        int h = Integer.parseInt(str[0]);
        int n = Integer.parseInt(str[1]);
        for (int i = 0; i < n; i++) {
            h = h - Integer.parseInt(at[i]);
        }
        if (h <= 0) {
            pw.println("Yes");
        }else {
            pw.println("No");
        }
        pw.flush();
    }
} Main public static void main(String[] args) {
        PrintWriter pw = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String read1 = null;
        String read2 = null;
        try {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } catch (IOException e){
            e.printStackTrace();
        }
        String str[] = read1.split(" ", 0);
        String at[] = read2.split(" ", 0);
        int h = Integer.parseInt(str[0]);
        int n = Integer.parseInt(str[1]);
        for (int i = 0; i < n; i++) {
            h = h - Integer.parseInt(at[i]);
        }
        if (h <= 0) {
            pw.println("Yes");
        }else {
            pw.println("No");
        }
        pw.flush();
    } main {
        PrintWriter pw = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String read1 = null;
        String read2 = null;
        try {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } catch (IOException e){
            e.printStackTrace();
        }
        String str[] = read1.split(" ", 0);
        String at[] = read2.split(" ", 0);
        int h = Integer.parseInt(str[0]);
        int n = Integer.parseInt(str[1]);
        for (int i = 0; i < n; i++) {
            h = h - Integer.parseInt(at[i]);
        }
        if (h <= 0) {
            pw.println("Yes");
        }else {
            pw.println("No");
        }
        pw.flush();
    } PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String read1 = null; read1 null String read2 = null; read2 null try {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } catch (IOException e){
            e.printStackTrace();
        } catch (IOException e){
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } read1 = br.readLine() read1 br.readLine() br.readLine br read2 = br.readLine() read2 br.readLine() br.readLine br br.close() br.close br String str[] = read1.split(" ", 0); str read1.split(" ", 0) read1.split read1 " " 0 String at[] = read2.split(" ", 0); at read2.split(" ", 0) read2.split read2 " " 0 int h = Integer.parseInt(str[0]); h Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int n = Integer.parseInt(str[1]); n Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 for (int i = 0; i < n; i++) {
            h = h - Integer.parseInt(at[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h = h - Integer.parseInt(at[i]);
        } {
            h = h - Integer.parseInt(at[i]);
        } h = h - Integer.parseInt(at[i]) h h - Integer.parseInt(at[i]) h Integer.parseInt(at[i]) Integer.parseInt Integer at[i] at i if (h <= 0) {
            pw.println("Yes");
        }else {
            pw.println("No");
        } h <= 0 h 0 {
            pw.println("Yes");
        } pw.println("Yes") pw.println pw "Yes" {
            pw.println("No");
        } pw.println("No") pw.println pw "No" pw.flush() pw.flush pw String[] args args public class Main {
    public static void main(String[] args) {
        PrintWriter pw = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String read1 = null;
        String read2 = null;
        try {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } catch (IOException e){
            e.printStackTrace();
        }
        String str[] = read1.split(" ", 0);
        String at[] = read2.split(" ", 0);
        int h = Integer.parseInt(str[0]);
        int n = Integer.parseInt(str[1]);
        for (int i = 0; i < n; i++) {
            h = h - Integer.parseInt(at[i]);
        }
        if (h <= 0) {
            pw.println("Yes");
        }else {
            pw.println("No");
        }
        pw.flush();
    }
} public class Main {
    public static void main(String[] args) {
        PrintWriter pw = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String read1 = null;
        String read2 = null;
        try {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } catch (IOException e){
            e.printStackTrace();
        }
        String str[] = read1.split(" ", 0);
        String at[] = read2.split(" ", 0);
        int h = Integer.parseInt(str[0]);
        int n = Integer.parseInt(str[1]);
        for (int i = 0; i < n; i++) {
            h = h - Integer.parseInt(at[i]);
        }
        if (h <= 0) {
            pw.println("Yes");
        }else {
            pw.println("No");
        }
        pw.flush();
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main {
    public static void main(String[] args) {
        PrintWriter pw = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String read1 = null;
        String read2 = null;
        try {
            read1 = br.readLine();
            read2 = br.readLine();
            br.close();
        } catch (IOException e){
            e.printStackTrace();
        }
        String str[] = read1.split(" ", 0);
        String at[] = read2.split(" ", 0);
        int h = Integer.parseInt(str[0]);
        int n = Integer.parseInt(str[1]);
        for (int i = 0; i < n; i++) {
            h = h - Integer.parseInt(at[i]);
        }
        if (h <= 0) {
            pw.println("Yes");
        }else {
            pw.println("No");
        }
        pw.flush();
    }
}