import java.util.*;
import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		
		// 入出力高速化 java.io.* とthrows IOExceptionを忘れずに
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] HN = br.readLine().split(" ") ; 
		int H = Integer.parseInt(HN[0]);
		int N = Integer.parseInt(HN[1]);
		
		String[] IN =br.readLine().split(" ") ; 
		int sum = 0;
		for(int n=0; n<N; n++) {
			sum += Integer.parseInt(IN[n]);
		}
		
		String ans = "Yes";
		if(sum<H) {
			ans = "No";
		}
		
		System.out.println(ans);	
		
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws IOException {
		
		// 入出力高速化 java.io.* とthrows IOExceptionを忘れずに
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] HN = br.readLine().split(" ") ; 
		int H = Integer.parseInt(HN[0]);
		int N = Integer.parseInt(HN[1]);
		
		String[] IN =br.readLine().split(" ") ; 
		int sum = 0;
		for(int n=0; n<N; n++) {
			sum += Integer.parseInt(IN[n]);
		}
		
		String ans = "Yes";
		if(sum<H) {
			ans = "No";
		}
		
		System.out.println(ans);	
		
	}
} Main public static void main(String[] args) throws IOException {
		
		// 入出力高速化 java.io.* とthrows IOExceptionを忘れずに
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] HN = br.readLine().split(" ") ; 
		int H = Integer.parseInt(HN[0]);
		int N = Integer.parseInt(HN[1]);
		
		String[] IN =br.readLine().split(" ") ; 
		int sum = 0;
		for(int n=0; n<N; n++) {
			sum += Integer.parseInt(IN[n]);
		}
		
		String ans = "Yes";
		if(sum<H) {
			ans = "No";
		}
		
		System.out.println(ans);	
		
	} main {
		
		// 入出力高速化 java.io.* とthrows IOExceptionを忘れずに
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] HN = br.readLine().split(" ") ; 
		int H = Integer.parseInt(HN[0]);
		int N = Integer.parseInt(HN[1]);
		
		String[] IN =br.readLine().split(" ") ; 
		int sum = 0;
		for(int n=0; n<N; n++) {
			sum += Integer.parseInt(IN[n]);
		}
		
		String ans = "Yes";
		if(sum<H) {
			ans = "No";
		}
		
		System.out.println(ans);	
		
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] HN = br.readLine().split(" ") ; HN br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int H = Integer.parseInt(HN[0]); H Integer.parseInt(HN[0]) Integer.parseInt Integer HN[0] HN 0 int N = Integer.parseInt(HN[1]); N Integer.parseInt(HN[1]) Integer.parseInt Integer HN[1] HN 1 String[] IN =br.readLine().split(" ") ; IN br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int sum = 0; sum 0 for(int n=0; n<N; n++) {
			sum += Integer.parseInt(IN[n]);
		} int n=0; int n=0; n 0 n<N n N n++ n++ n {
			sum += Integer.parseInt(IN[n]);
		} {
			sum += Integer.parseInt(IN[n]);
		} sum += Integer.parseInt(IN[n]) sum Integer.parseInt(IN[n]) Integer.parseInt Integer IN[n] IN n String ans = "Yes"; ans "Yes" if(sum<H) {
			ans = "No";
		} sum<H sum H {
			ans = "No";
		} ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		
		// 入出力高速化 java.io.* とthrows IOExceptionを忘れずに
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] HN = br.readLine().split(" ") ; 
		int H = Integer.parseInt(HN[0]);
		int N = Integer.parseInt(HN[1]);
		
		String[] IN =br.readLine().split(" ") ; 
		int sum = 0;
		for(int n=0; n<N; n++) {
			sum += Integer.parseInt(IN[n]);
		}
		
		String ans = "Yes";
		if(sum<H) {
			ans = "No";
		}
		
		System.out.println(ans);	
		
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		
		// 入出力高速化 java.io.* とthrows IOExceptionを忘れずに
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] HN = br.readLine().split(" ") ; 
		int H = Integer.parseInt(HN[0]);
		int N = Integer.parseInt(HN[1]);
		
		String[] IN =br.readLine().split(" ") ; 
		int sum = 0;
		for(int n=0; n<N; n++) {
			sum += Integer.parseInt(IN[n]);
		}
		
		String ans = "Yes";
		if(sum<H) {
			ans = "No";
		}
		
		System.out.println(ans);	
		
	}
} Main
import java.util.*;
import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		
		// 入出力高速化 java.io.* とthrows IOExceptionを忘れずに
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] HN = br.readLine().split(" ") ; 
		int H = Integer.parseInt(HN[0]);
		int N = Integer.parseInt(HN[1]);
		
		String[] IN =br.readLine().split(" ") ; 
		int sum = 0;
		for(int n=0; n<N; n++) {
			sum += Integer.parseInt(IN[n]);
		}
		
		String ans = "Yes";
		if(sum<H) {
			ans = "No";
		}
		
		System.out.println(ans);	
		
	}
}