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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		
		int h = Integer.parseInt(line[0]);
		int n = Integer.parseInt(line[1]);
		
		line = br.readLine().split(" ");
		br.close();		
		boolean flg = false;
		
		for(String s: line) {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		}

		if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		
		int h = Integer.parseInt(line[0]);
		int n = Integer.parseInt(line[1]);
		
		line = br.readLine().split(" ");
		br.close();		
		boolean flg = false;
		
		for(String s: line) {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		}

		if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		

	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		
		int h = Integer.parseInt(line[0]);
		int n = Integer.parseInt(line[1]);
		
		line = br.readLine().split(" ");
		br.close();		
		boolean flg = false;
		
		for(String s: line) {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		}

		if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		
		int h = Integer.parseInt(line[0]);
		int n = Integer.parseInt(line[1]);
		
		line = br.readLine().split(" ");
		br.close();		
		boolean flg = false;
		
		for(String s: line) {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		}

		if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int h = Integer.parseInt(line[0]); h Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int n = Integer.parseInt(line[1]); n Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 line = br.readLine().split(" ") line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " br.close() br.close br boolean flg = false; flg false for(String s: line) {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		} String s line {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		} {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		} if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			} (h -= Integer.parseInt(s))<=0 (h -= Integer.parseInt(s)) h Integer.parseInt(s) Integer.parseInt Integer s 0 {
				flg=true;
				break;
			} flg=true flg true break; if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} flg {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		
		int h = Integer.parseInt(line[0]);
		int n = Integer.parseInt(line[1]);
		
		line = br.readLine().split(" ");
		br.close();		
		boolean flg = false;
		
		for(String s: line) {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		}

		if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		

	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		
		int h = Integer.parseInt(line[0]);
		int n = Integer.parseInt(line[1]);
		
		line = br.readLine().split(" ");
		br.close();		
		boolean flg = false;
		
		for(String s: line) {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		}

		if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		

	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		
		int h = Integer.parseInt(line[0]);
		int n = Integer.parseInt(line[1]);
		
		line = br.readLine().split(" ");
		br.close();		
		boolean flg = false;
		
		for(String s: line) {
			if((h -= Integer.parseInt(s))<=0) {
				flg=true;
				break;
			}
		}

		if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		

	}
}
